You are here

function node_page_disable_disable in Node Page Disable 6

Same name and namespace in other branches
  1. 7 node_page_disable.install \node_page_disable_disable()

Implements hook_disable().

File

./node_page_disable.install, line 45
Handles installation steps for node_page_disable

Code

function node_page_disable_disable() {

  // Make sure we rebuild the menu so the node page is visible
  variable_set('node_page_disable_path_node_keep', NODE_PAGE_DISABLE_DEFAULT);
  drupal_set_message(t('The path <a href="@url">/node</a> has been restored to the default.', array(
    '@url' => url('node'),
  )));
  variable_set('menu_rebuild_needed', TRUE);
}