function security_review_menu in Security Review 7
Same name and namespace in other branches
- 6 security_review.module \security_review_menu()
Implements hook_menu().
1 string reference to 'security_review_menu'
- security_review_drush in ./
security_review.drush.inc - Run checklist and display results command.
File
- ./
security_review.module, line 28 - Site security review and reporting Drupal module.
Code
function security_review_menu() {
$items = array();
$items['admin/reports/security-review'] = array(
'title' => 'Security review',
'description' => 'Perform a review of the security of your site.',
'page callback' => 'security_review_page',
'access arguments' => array(
'access security review list',
),
'file' => 'security_review.pages.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/reports/security-review/run'] = array(
'title' => 'Run & review',
'access arguments' => array(
'access security review list',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/reports/security-review/toggle/%'] = array(
'title' => 'Security review toggle',
'page callback' => 'security_review_toggle_check',
'page arguments' => array(
4,
),
'access arguments' => array(
'access security review list',
),
'file' => 'security_review.pages.inc',
'type' => MENU_CALLBACK,
);
$items['admin/reports/security-review/help'] = array(
'title' => 'Help',
'page callback' => 'security_review_check_help',
'access arguments' => array(
'access security review list',
),
'file' => 'security_review.pages.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items['admin/reports/security-review/settings'] = array(
'title' => 'Settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'security_review_settings',
),
'access arguments' => array(
'access security review list',
),
'file' => 'security_review.pages.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 15,
);
return $items;
}