summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2010-06-07 15:26:59 (GMT)
committer Stella Power2010-06-07 15:26:59 (GMT)
commit5dcab44570fe2139c3926ad6c060ee8215e96064 (patch)
tree4194597cf54ecbd3ee2b005d49dc30ab536b8c6b
parentf2c4cd37b2c2e68c8cdf7fdf13555c72c7f6d1ef (diff)
#677664 by jweowu - update hook for variable name mismatch
-rw-r--r--lightbox2.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/lightbox2.install b/lightbox2.install
index 3e43ea8..795f556 100644
--- a/lightbox2.install
+++ b/lightbox2.install
@@ -176,3 +176,18 @@ function lightbox2_update_6001() {
}
return array();
}
+
+/**
+ * 'lightbox2_slideshow_pause_on_previous_click' was mis-named as
+ * 'lightbox2_slideshow_pause_on_prev_click'.
+ */
+function lightbox2_update_6002() {
+ $vars = variable_init();
+ if (array_key_exists('lightbox2_slideshow_pause_on_prev_click', $vars)) {
+ $value = $vars['lightbox2_slideshow_pause_on_prev_click'];
+ variable_set('lightbox2_slideshow_pause_on_previous_click', $value);
+ variable_del('lightbox2_slideshow_pause_on_prev_click');
+ }
+ return array();
+}
+