#207540 - added separate option to disable lightbox2 for nested acidfree
[project/lightbox2.git] / lightbox2.install
CommitLineData
ac1392ca
SP
1<?php
2// $Id $
3
e4dc1a48
SP
4/**
5 * @file
e5e7aeb7 6 * Installation functions for Lightbox2.
e4dc1a48
SP
7 */
8
4661ef7a 9/**
e4dc1a48 10 * Implementation of hook_install().
1caf161e 11 */
ac1392ca 12function lightbox2_install() {
f7def149 13 module_invoke('content', 'clear_type_cache');
09d4f013 14 watchdog('lightbox2', 'lightbox2 module installed');
ac1392ca
SP
15}
16
4661ef7a 17/**
e4dc1a48 18 * Implementation of hook_uninstall().
1caf161e 19 */
ac1392ca 20function lightbox2_uninstall() {
e5e7aeb7 21 // Delete the variables we created.
09d4f013 22 variable_del('lightbox2_plus');
d080a476 23 variable_del('lightbox2_lite');
84ebd4c2 24
d71978b5 25 variable_del('lightbox2_use_alt_layout');
0eeb09eb
SP
26 variable_del('lightbox2_display_image_size');
27 variable_del('lightbox2_trigger_image_size');
d71978b5 28 variable_del('lightbox2_force_show_nav');
84ebd4c2
SP
29 variable_del('lightbox2_image_count_str');
30 variable_del('lightbox2_disable_zoom');
825d1fe4
SP
31 variable_del('lightbox2_overlay_opacity');
32 variable_del('lightbox2_js_location');
84ebd4c2
SP
33 variable_del('lightbox2G2_filter');
34 variable_del('lightbox2_disable_these_urls');
35
09d4f013 36 variable_del('lightbox2_image_node');
8183d995 37 variable_del('lightbox2_flickr');
09d4f013 38 variable_del('lightbox2_image_group');
d080a476
SP
39 variable_del('lightbox2_node_link_text');
40 variable_del('lightbox2_disable_nested_galleries');
c4528bcd 41 variable_del('lightbox2_disable_nested_acidfree_galleries');
4661ef7a 42
09d4f013 43 watchdog('lightbox2', 'lightbox2 module un-installed');
ac1392ca 44}
31b3aeb8 45
4661ef7a
SP
46function lightbox2_update_1() {
47 $ret = array();
48 $ret[] = update_sql('UPDATE {variable} SET name="lightbox2_lite"
49 WHERE name="lightbox2_plus";');
50
51 return $ret;
52}
53