function persistent_login_menu in Persistent Login 5
Same name and namespace in other branches
- 6 persistent_login.module \persistent_login_menu()
- 7 persistent_login.module \persistent_login_menu()
Implementation of hook_menu().
File
- ./
persistent_login.module, line 45
Code
function persistent_login_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'persistent_login/erase',
'callback' => 'persistent_login_erase',
'access' => TRUE,
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/settings/persistent_login',
'title' => t('Persistent Login'),
'description' => t('Control Persistent Login session lifetime and restricted pages.'),
'callback' => 'drupal_get_form',
'callback arguments' => 'persistent_login_admin_settings',
'access' => user_access('administer Persistent Login'),
'type' => MENU_NORMAL_ITEM,
);
}
return $items;
}