menu_link_weight.install in Menu Link Weight 7
Same filename and directory in other branches
Install file for Menu Link Weight.
File
menu_link_weight.installView 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
Name | Description |
---|---|
menu_link_weight_install | Implements hook_install(). |
menu_link_weight_update_7000 | Make the Menu Link Weight module execute later. |