menu_token.install in Menu Token 5
Same filename and directory in other branches
File
menu_token.installView 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
Name | Description |
---|---|
menu_token_install | Implementation of hook_install(). |
menu_token_uninstall | Implementation of hook_uninstall(). |