You are here

function protected_node_menu_array in Protected Node 6

Same name and namespace in other branches
  1. 7 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
Implementation of hook_menu(). @link http://api.drupal.org/api/function/hook_menu/6

File

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

Code

function protected_node_menu_array() {
  $items = array();
  $items['admin/settings/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 content',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'protected_node.fork.inc',
  );
  return $items;
}