You are here

function autologout_menu in Automated Logout 7.2

Same name and namespace in other branches
  1. 5 autologout.module \autologout_menu()
  2. 6.4 autologout.module \autologout_menu()
  3. 6 autologout.module \autologout_menu()
  4. 6.2 autologout.module \autologout_menu()
  5. 6.3 autologout.module \autologout_menu()
  6. 7.4 autologout.module \autologout_menu()

Implements hook_menu().

File

./autologout.module, line 401
Used to automagically log out a user after a preset time, AjK May 2006

Code

function autologout_menu() {
  $items['admin/config/people/autologout'] = array(
    'title' => 'Automated logout',
    'description' => 'Manage the Automated Logout features',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'autologout_admin_settings',
    ),
    'access arguments' => array(
      'administer autologout',
    ),
    'file' => 'autologout.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['autologout/logout'] = array(
    'title' => 'Automated logout',
    'page callback' => 'autologout_logout',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  return $items;
}