webmaster_menu.install in Webmaster menu 7
Install functions for the webmaster_menu module
File
webmaster_menu.installView source
<?php
/**
* @file
* Install functions for the webmaster_menu module
*/
/**
* Implements hook_install().
*/
function webmaster_menu_install() {
// Increase the wait to come after overlay
/*
db_update('system')
->fields(array(
'weight' => 1,
))
->condition('type', 'module')
->condition('name', 'webmaster_menu')
->execute();
*/
// Tell user that the module was installed and how to configure it.
$t = get_t();
$link = l($t('Administration > Configuration > Webmaster menu'), 'admin/config/webmaster_menu');
$text = $t("Webmaster menu was installed. It can be configured here: " . $link);
drupal_set_message(filter_xss_admin($text));
}
/**
* Implements hook_uninstall().
*/
function webmaster_menu_uninstall() {
variable_del('webmaster_menu_roles');
variable_del('webmaster_menu_show_root');
variable_del('webmaster_menu_menu');
variable_del('webmaster_menu_add_home');
variable_del('webmaster_menu_add_logout');
variable_del('webmaster_menu_extra_menu');
}
Functions
Name![]() |
Description |
---|---|
webmaster_menu_install | Implements hook_install(). |
webmaster_menu_uninstall | Implements hook_uninstall(). |