function lightbox2_update_2 in Lightbox2 7
Same name and namespace in other branches
- 8 lightbox2.install \lightbox2_update_2()
- 5.2 lightbox2.install \lightbox2_update_2()
- 6 lightbox2.install \lightbox2_update_2()
- 7.2 lightbox2.install \lightbox2_update_2()
'lightbox2_image_group' variable has been removed and others need to be updated accordingly.
Should have been created with lightbox2_update_600x() naming convention, but too late now.
File
- ./
lightbox2.install, line 121 - Installation functions for Lightbox2.
Code
function lightbox2_update_2() {
$image_group = variable_get('lightbox2_image_group', TRUE);
$image_node = variable_get('lightbox2_image_node', TRUE);
$flickr = variable_get('lightbox2_flickr', TRUE);
$gallery2 = variable_get('lightbox2_gallery2_blocks', TRUE);
$inline = variable_get('lightbox2_inline', TRUE);
$image_assist = variable_get('lightbox2_image_assist_custom', TRUE);
if ($image_group) {
if ($image_node) {
variable_set('lightbox2_image_node', 2);
}
if ($flickr) {
variable_set('lightbox2_flickr', 2);
}
if ($gallery2) {
variable_set('lightbox2_gallery2_blocks', 2);
}
if ($inline) {
variable_set('lightbox2_inline', 2);
}
if ($image_assist) {
variable_set('lightbox2_image_assist_custom', 2);
}
}
variable_del('lightbox2_image_group');
return array();
}