You are here

function ack_menu_install in Access Control Kit 7

Implements hook_install().

File

ack_menu/ack_menu.install, line 58
Install, update, and uninstall functions for the ACK menu module.

Code

function ack_menu_install() {

  // Make sure that this module's hooks execute after the menu module's.
  $weight = db_query('SELECT weight FROM {system} WHERE name = :name', array(
    ':name' => 'menu',
  ))
    ->fetchField();
  db_update('system')
    ->fields(array(
    'weight' => $weight + 1,
  ))
    ->condition('name', 'ack_menu')
    ->execute();
}