You are here

menu_token.install in Menu Token 5

File

menu_token.install
View source
<?php

/**
 * Implementation of hook_install().
 */
function menu_token_install() {

  // Set the module weight to -2, so that the menu_token.module's hook_menu()
  // implementation get's called before core node's implementation ...
  db_query("UPDATE {system} SET weight = -10 WHERE name = 'menu_token'");
}

/**
 * Implementation of hook_uninstall().
 */
function menu_token_uninstall() {
  variable_del('menu_token_enabled');
}

Functions

Namesort descending Description
menu_token_install Implementation of hook_install().
menu_token_uninstall Implementation of hook_uninstall().