function autologout_menu in Automated Logout 5
Same name and namespace in other branches
- 6.4 autologout.module \autologout_menu()
- 6 autologout.module \autologout_menu()
- 6.2 autologout.module \autologout_menu()
- 6.3 autologout.module \autologout_menu()
- 7.2 autologout.module \autologout_menu()
- 7.4 autologout.module \autologout_menu()
Implementation of hook_menu
File
- ./autologout.module, line 297 
- Used to automagically log out a user after a preset time, AjK May 2006
Code
function autologout_menu($may_cache) {
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/autologout',
      'title' => t('Automated Logout'),
      'description' => t('manage the Automated Logout features'),
      'callback' => 'drupal_get_form',
      'callback arguments' => '_autologout_settings',
      'access' => user_access('administer autologout'),
      'type' => MENU_NORMAL_ITEM,
    );
    return $items;
  }
}