dhtml_menu.install in DHTML Menu 5
Same filename and directory in other branches
Install and Uninstall processes for this module.
File
dhtml_menu.installView source
<?php
/**
* @file
* Install and Uninstall processes for this module.
*/
/**
* Implementation of hook_enable().
*/
function dhtml_menu_enable() {
// Allow option to replace navigation block with DHTML equivalent
drupal_set_message(t('DHTML menu has been installed. If you wish, you may immediately <a href="@auto">enable it for the main navigation menu</a> or adjust your <a href="@settings">block settings</a> in detail.', array(
'@auto' => url('admin/settings/dhtml_menu/replace-navigation'),
'@settings' => url('admin/build/block'),
)), 'status');
}
/**
* Implementation of hook_uninstall().
*/
function dhtml_menu_uninstall() {
// Delete all global variables
variable_del('dhtml_menu_duplicated');
variable_del('dhtml_menu_use_effects');
}
Functions
Name![]() |
Description |
---|---|
dhtml_menu_enable | Implementation of hook_enable(). |
dhtml_menu_uninstall | Implementation of hook_uninstall(). |