function pages_restriction_menu in Pages Restriction Access 7
Implements hook_menu().
File
- ./
pages_restriction.module, line 11 - Contains the administrative features for the Pages Restriction.
Code
function pages_restriction_menu() {
$items = array();
$items['admin/config/pages_restriction'] = array(
'title' => 'Pages Restriction Access',
'description' => 'Validation settings.',
'position' => 'right',
'weight' => -20,
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'administer site configuration',
),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);
$items['admin/config/pages_restriction/restrict_access'] = array(
'title' => 'Restrict Access',
'description' => 'Configuration to block access for Pre Defined Pages.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'pages_restriction_admin_form',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'pages_restriction.admin.inc',
);
return $items;
}