You are here

function protected_node_menu_array in Protected Node 7

Same name and namespace in other branches
  1. 6 protected_node.settings.inc \protected_node_menu_array()
  2. 1.0.x protected_node.settings.inc \protected_node_menu_array()

Actual implementation of the protected_node_menu() function.

Moved here to optimize the module (menu are cached and the definitions are only rarely necessary.)

1 call to protected_node_menu_array()
protected_node_menu in ./protected_node.module
Implements hook_menu().

File

./protected_node.settings.inc, line 58
Configuration file for the protected_node module.

Code

function protected_node_menu_array() {
  $items = array();
  $items['admin/content/protected'] = array(
    'title' => 'Protected',
    'description' => 'Find and manage content.',
    'page callback' => 'protected_node_content_list',
    'access arguments' => array(
      'access protected node overview page',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'protected_node.admin.inc',
    'weight' => -9,
  );
  $items['admin/config/content/protected_node'] = array(
    'title' => 'Protected Node',
    'description' => 'Edit the global Protected Node settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'protected_node_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'protected_node.settings.inc',
  );
  $items['protected-node'] = array(
    'title' => 'Protected page - Enter Password',
    'description' => 'Here you can enter the password for protected pages',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'protected_node_enterpassword',
    ),
    'access callback' => 'protected_node_access_callback',
    'type' => MENU_CALLBACK,
    'file' => 'protected_node.redirect.inc',
  );
  $items['protected-nodes'] = array(
    'title' => 'Protected page - Enter Password',
    'description' => 'Here you can enter the password for protected pages',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'protected_node_enter_any_password',
    ),
    'access arguments' => array(
      'access protected node password form',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'protected_node.fork.inc',
  );
  return $items;
}