You are here

function seckit_menu in Security Kit 6

Same name and namespace in other branches
  1. 7 seckit.module \seckit_menu()

Implements hook_menu().

File

./seckit.module, line 33
Allows administrators to improve security of the website.

Code

function seckit_menu() {

  // settings page
  $items['admin/settings/seckit'] = array(
    'title' => 'Security Kit',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'seckit_admin_form',
    ),
    'description' => 'Configure various options to improve security of your website.',
    'access arguments' => array(
      'administer seckit',
    ),
    'file' => 'includes/seckit.form.inc',
  );

  // menu callback for IE MIME-sniffer AHAH
  $items['admin/settings/seckit/mime'] = array(
    'page callback' => '_seckit_ie_mime_js',
    'access arguments' => array(
      'administer seckit',
    ),
    'type' => MENU_CALLBACK,
  );

  // menu callback for CSP reporting
  $items['admin/settings/seckit/csp-report'] = array(
    'page callback' => '_seckit_csp_report',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  return $items;
}