function persistent_login_menu in Persistent Login 7
Same name and namespace in other branches
- 5 persistent_login.module \persistent_login_menu()
- 6 persistent_login.module \persistent_login_menu()
Implements hook_menu().
File
- ./
persistent_login.module, line 70 - Provide a "Remember Me" checkbox in the login form.
Code
function persistent_login_menu() {
$items = array();
$items['persistent_login/erase'] = array(
'title' => 'Erase persistent logins',
'page callback' => 'persistent_login_erase',
'access callback' => 'persistent_login_erase_access',
'access arguments' => array(
2,
),
'type' => MENU_CALLBACK,
'file' => 'persistent_login.pages.inc',
);
$items['admin/config/system/persistent_login'] = array(
'title' => 'Persistent Login',
'description' => 'Control Persistent Login session lifetime and restricted pages.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'persistent_login_admin_settings',
),
'access arguments' => array(
'administer persistent login',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'persistent_login.pages.inc',
);
return $items;
}