You are here

bigmenu.install in Big Menu 7

Install routines for module.

File

bigmenu.install
View source
<?php

/**
 * @file
 * Install routines for module.
 */

/**
 * Implements hook_enable().
 *
 * Ensure we load after the usual core.
 */
function bigmenu_enable() {
  db_update('system')
    ->fields(array(
    'weight' => 10,
  ))
    ->condition('name', 'bigmenu')
    ->execute();
}

/**
 * Rebuild menus.
 *
 * So menu link:
 *   admin/structure/bigmenu-customize/%menu/subform/%menu_link
 * becomes:
 *   admin/structure/menu/manage/%menu/bigmenu-customize/subform/%menu_link.
 *
 * This fixes menu links not editable when bigmenu is used with i18n_menu.
 */
function bigmenu_update_7001() {
  menu_rebuild();
}

/**
 * Rebuild menus to remove admin/structure/bigmenu-customize/%menu.
 *
 * This menu link is not used.
 */
function bigmenu_update_7002() {
  menu_rebuild();
}

Functions

Namesort descending Description
bigmenu_enable Implements hook_enable().
bigmenu_update_7001 Rebuild menus.
bigmenu_update_7002 Rebuild menus to remove admin/structure/bigmenu-customize/%menu.