You are here

function hsts_menu in HTTP Strict Transport Security 7

Same name and namespace in other branches
  1. 6 hsts.module \hsts_menu()

Implements hook_menu().

File

./hsts.module, line 49
Main module file for the HSTS (HTTP Strict Transport Security) module.

Code

function hsts_menu() {
  $items = array();
  $items['admin/config/security'] = array(
    'title' => 'Security',
    'description' => 'Configure the security modules on this site.',
    'page callback' => 'system_admin_menu_block_page',
    'page arguments' => array(
      'form_id',
    ),
    'position' => 'right',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'system.admin.inc',
    'file path' => drupal_get_path('module', 'system'),
  );
  $items['admin/config/security/hsts'] = array(
    'title' => 'HTTP Strict Transport Security Settings',
    'description' => 'Set header configuration for Strict Transport Security',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'hsts_admin_settings_form',
    ),
    'access arguments' => array(
      'administer strict transport security',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'hsts.admin.inc',
  );
  return $items;
}