function password_policy_menu in Password Policy 7
Same name and namespace in other branches
- 5 password_policy.module \password_policy_menu()
- 6 password_policy.module \password_policy_menu()
- 7.2 password_policy.module \password_policy_menu()
Implements hook_menu().
File
- ./
password_policy.module, line 76 - Allows enforcing restrictions on user passwords by defining policies.
Code
function password_policy_menu() {
$items['admin/config/people/password_policy'] = array(
'title' => 'Password policies',
'description' => 'Configures policies for user account passwords.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'password_policy_admin_settings',
),
'access arguments' => array(
'administer password policies',
),
'file' => 'password_policy.admin.inc',
);
$items['admin/config/people/password_policy/configure'] = array(
'title' => 'Settings',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/people/password_policy/list'] = array(
'title' => 'List',
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'password_policy_admin_list',
),
'access arguments' => array(
'administer password policies',
),
'weight' => 1,
'file' => 'password_policy.admin.inc',
);
$items['admin/config/people/password_policy/add'] = array(
'title' => 'Add',
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'password_policy_admin_form',
NULL,
),
'access arguments' => array(
'administer password policies',
),
'weight' => 2,
'file' => 'password_policy.admin.inc',
);
$items['admin/config/people/password_policy/%password_policy_policy'] = array(
'title' => 'Password policy',
'title callback' => 'password_policy_format_title',
'title arguments' => array(
4,
),
'page callback' => 'password_policy_admin_view',
'page arguments' => array(
4,
),
'access arguments' => array(
'administer password policies',
),
'file' => 'password_policy.admin.inc',
);
$items['admin/config/people/password_policy/%password_policy_policy/view'] = array(
'title' => 'View',
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/people/password_policy/%password_policy_policy/edit'] = array(
'title' => 'Edit',
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'password_policy_admin_form',
4,
),
'access arguments' => array(
'administer password policies',
),
'weight' => 1,
'file' => 'password_policy.admin.inc',
);
$items['admin/config/people/password_policy/%password_policy_policy/delete'] = array(
'title' => 'Delete',
'type' => MENU_CALLBACK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'password_policy_admin_delete',
4,
),
'access arguments' => array(
'administer password policies',
),
'file' => 'password_policy.admin.inc',
);
$items['admin/config/people/password_policy/password_change'] = array(
'title' => 'Force password change',
'description' => 'Force users to change their password',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'password_policy_password_change_settings',
),
'access arguments' => array(
'force password change',
),
'file' => 'password_policy.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items['admin/people/expired'] = array(
'title' => 'Expired accounts',
'type' => MENU_LOCAL_TASK,
'description' => 'Lists all expired accounts.',
'page callback' => 'password_policy_expired_list',
'page arguments' => array(
'password_policy_list_expired',
),
'access arguments' => array(
'unblock expired accounts',
),
);
$items['admin/people/expired/unblock/%password_policy_uid'] = array(
'title' => 'Unblock',
'type' => MENU_CALLBACK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'password_policy_expired_unblock_confirm',
4,
),
'access arguments' => array(
'unblock expired accounts',
),
);
return $items;
}