You are here

navigation404.install in 404 Navigation 7

Same filename and directory in other branches
  1. 8 navigation404.install

File

navigation404.install
View 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

Namesort descending Description
navigation404_disable Implements hook_disable().
navigation404_enable Implements hook_enable().