You are here

function lockr_menu in Lockr 7.2

Same name and namespace in other branches
  1. 7.3 lockr.module \lockr_menu()
  2. 7 lockr.module \lockr_menu()

Implements hook_menu().

File

./lockr.module, line 34
Hook implementations and callbacks for lockr.

Code

function lockr_menu() {
  $items = array();
  $items['admin/config/system/lockr'] = array(
    'title' => 'Lockr',
    'description' => 'Store keys securely off-site.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'lockr_admin_form',
    ),
    'access arguments' => array(
      'administer keys',
    ),
    'file' => 'lockr.admin.inc',
  );
  $items['admin/config/system/lockr/login'] = array(
    'title' => 'Login to Lockr',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'lockr_login_form',
    ),
    'access arguments' => array(
      'administer keys',
    ),
    'file' => 'lockr.login.inc',
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/system/lockr/migrate'] = [
    'title' => 'Migrate legacy keys',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'lockr_migrate_keys_form',
    ],
    'access arguments' => [
      'administer keys',
    ],
    'file' => 'lockr.forms.inc',
    'type' => MENU_CALLBACK,
  ];
  return $items;
}