navigation404.install in 404 Navigation 7
Same filename and directory in other branches
File
navigation404.installView source
<?php
/**
* Implements hook_enable().
*
* If site_404 is not set, all menu-related items disappear on 404.
*/
function navigation404_enable() {
if (variable_get('site_404', '') == '') {
variable_set('site_404', NAVIGATION404_PAGE);
}
}
/**
* Implements hook_disable().
*/
function navigation404_disable() {
if (variable_get('site_404', '') == NAVIGATION404_PAGE) {
variable_del('site_404');
}
}
Functions
Name | Description |
---|---|
navigation404_disable | Implements hook_disable(). |
navigation404_enable | Implements hook_enable(). |