site_map.install in Site map 6.2
Same filename and directory in other branches
The install and update code for the site_map module.
File
site_map.installView source
<?php
/**
* @file
* The install and update code for the site_map module.
*
* @ingroup site_map
*/
/**
* Implements hook_uninstall().
*/
function site_map_uninstall() {
db_query("DELETE FROM {variable} WHERE name LIKE 'site_map_%'");
}
/**
* Delete no longer used variables.
*/
function site_map_update_6000() {
$ret = array();
$ret[] = update_sql("DELETE FROM {variable} WHERE name LIKE 'site_map_message_%'");
$ret[] = update_sql("DELETE FROM {variable} WHERE name LIKE 'site_map_show_menus_%'");
return $ret;
}
/**
* Change block caching mode.
*/
function site_map_update_6001() {
$ret = array();
$ret[] = update_sql("UPDATE {blocks} set cache = " . BLOCK_NO_CACHE . " WHERE module = 'site_map'");
return $ret;
}
Functions
Name | Description |
---|---|
site_map_uninstall | Implements hook_uninstall(). |
site_map_update_6000 | Delete no longer used variables. |
site_map_update_6001 | Change block caching mode. |