You are here

function access_unpublished_menu_alter in Access unpublished 6

Implements hook_menu_alter().

File

./access_unpublished.module, line 37
This module is used to allow access to unpublished nodes

Code

function access_unpublished_menu_alter(&$items) {
  if (function_exists('_access_unpublished_node_access')) {
    $items['node/%node']['access callback'] = '_access_unpublished_node_access';
  }
}