You are here

hs_menu.install in Hierarchical Select 7.3

Install file for the Hierarchical Select Menu module.

File

modules/hs_menu.install
View source
<?php

/**
 * @file
 * Install file for the Hierarchical Select Menu module.
 */

/**
 * Implements hook_install().
 */
function hs_menu_install() {

  // Ensure hs_menu runs after Core's menu.
  db_update('system')
    ->fields(array(
    'weight' => 1,
  ))
    ->condition('name', 'hs_menu')
    ->execute();
}

/**
 * Implementats hook_uninstall().
 */
function hs_menu_uninstall() {
  db_delete('variable')
    ->condition('name', 'hs_menu_%', 'LIKE')
    ->execute();
}

Functions

Namesort descending Description
hs_menu_install Implements hook_install().
hs_menu_uninstall Implementats hook_uninstall().