You are here

function secure_permissions_menu in Secure Permissions 6

Same name and namespace in other branches
  1. 7.2 secure_permissions.module \secure_permissions_menu()
  2. 7 secure_permissions.module \secure_permissions_menu()

Implement hook_menu().

File

./secure_permissions.module, line 55
Secure Permissions module file.

Code

function secure_permissions_menu() {
  $items = array();
  $items['admin/user/secure_permissions'] = array(
    'title' => 'Secure permissions',
    'description' => 'Configuration for the secure permissions module.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'secure_permissions_form',
    ),
    'access arguments' => array(
      'export secure permissions',
    ),
  );
  $items['admin/user/secure_permissions/view'] = array(
    'title' => 'Settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/user/secure_permissions/export'] = array(
    'title' => 'Export permissions',
    'description' => 'Export site permissions for use by Secure Permissions.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'secure_permissions_export',
    ),
    'access arguments' => array(
      'export secure permissions',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 5,
  );
  return $items;
}