Newer
Older
<?php
// $Id $
* Implementation of hook_install()
* just give a message
*/
function lightbox2_install() {
watchdog('lightbox2', 'lightbox2 module installed');
}
* Implementation of hook_uninstall()
*/
function lightbox2_uninstall() {
// delete the variables we created
variable_del('lightbox2_plus');
Stella Power
committed
variable_del('lightbox2_lite');
variable_del('lightbox2_image_node');
variable_del('lightbox2_image_group');
variable_del('lightbox2_node_link_text');
variable_del('lightbox2_disable_nested_galleries');
variable_del('lightbox2_image_count_str');
variable_del('lightbox2G2_filter');
variable_del('lightbox2_disable_these_urls');
watchdog('lightbox2', 'lightbox2 module un-installed');
}
Stella Power
committed
function lightbox2_update_1() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql('UPDATE {variable} SET name="lightbox2_lite"
WHERE name="lightbox2_plus";');
break;
case 'pgsql':
$ret[] = update_sql('UPDATE {variable} SET name="lightbox2_lite"
WHERE name="lightbox2_plus";');
break;
}
return $ret;
}