You are here

menu_link_weight.install in Menu Link Weight 7

Same filename and directory in other branches
  1. 8.2 menu_link_weight.install
  2. 8 menu_link_weight.install

Install file for Menu Link Weight.

File

menu_link_weight.install
View source
<?php

/**
 * @file
 * Install file for Menu Link Weight.
 */

/**
 * Implements hook_install().
 */
function menu_link_weight_install() {
  menu_link_weight_update_7000();
}

/**
 * Make the Menu Link Weight module execute later.
 */
function menu_link_weight_update_7000() {

  // Make sure this module always runs after the core Menu module and allows
  // other modules to alter menu access before executing.
  db_update('system')
    ->fields(array(
    'weight' => 4,
  ))
    ->condition('name', 'menu_link_weight')
    ->execute();
}

Functions

Namesort descending Description
menu_link_weight_install Implements hook_install().
menu_link_weight_update_7000 Make the Menu Link Weight module execute later.