You are here

function lightbox2_update_1 in Lightbox2 7.2

Same name and namespace in other branches
  1. 8 lightbox2.install \lightbox2_update_1()
  2. 5.2 lightbox2.install \lightbox2_update_1()
  3. 6 lightbox2.install \lightbox2_update_1()
  4. 7 lightbox2.install \lightbox2_update_1()

One of the variables was renamed from 'lightbox2_plus' to 'lightbox2_lite'.

Should have been created with lightbox2_update_600x() naming convention, but too late now.

File

./lightbox2.install, line 108
Installation functions for Lightbox2.

Code

function lightbox2_update_1() {
  $variable_name = 'lightbox2_plus';
  $var = variable_get($variable_name);
  if ($var) {
    variable_set('lightbox2_lite', $var);
    variable_del($variable_name);
  }
  return array();
}