You are here

dhtml_menu.install in DHTML Menu 5

Install and Uninstall processes for this module.

File

dhtml_menu.install
View 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

Namesort descending Description
dhtml_menu_enable Implementation of hook_enable().
dhtml_menu_uninstall Implementation of hook_uninstall().