You are here

function access_unpublished_menu in Access unpublished 6

Same name and namespace in other branches
  1. 7 access_unpublished.module \access_unpublished_menu()

Implements hook_menu().

File

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

Code

function access_unpublished_menu() {
  $items = array();
  $items['admin/settings/access_unpublished'] = array(
    'title' => 'Access unpublished',
    'description' => 'Configure settings used to access unpublished content.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'access_unpublished_admin',
    ),
    'access arguments' => array(
      'access administration pages',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer permissions',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}