You are here

function content_access_menu in Content Access 7

Same name and namespace in other branches
  1. 5 content_access.module \content_access_menu()
  2. 6 content_access.module \content_access_menu()

Implements hook_menu().

File

./content_access.module, line 46
Content access module file.

Code

function content_access_menu() {
  $items = array();
  $items['node/%node/access'] = array(
    'title' => 'Access control',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'content_access_page',
      1,
    ),
    'access callback' => 'content_access_node_page_access',
    'access arguments' => array(
      1,
    ),
    'file' => 'content_access.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
    'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
  );
  $items['admin/structure/types/manage/%node_type/access'] = array(
    'title' => 'Access control',
    'description' => 'Configure content access control.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'content_access_admin_settings',
      4,
    ),
    'access callback' => 'content_access_admin_settings_access',
    'access arguments' => array(),
    'type' => MENU_LOCAL_TASK,
    'file' => 'content_access.admin.inc',
    'weight' => 1,
  );
  return $items;
}