You are here

function autologout_menu in Automated Logout 6.4

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

Implements hook_menu().

File

./autologout.module, line 26
Used to automagically log out a user after a preset time.

Code

function autologout_menu() {
  $items = array();
  $items['admin/settings/autologout'] = array(
    'title' => 'Auto Logout',
    'description' => 'Administer Auto Logout settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'autologout_settings',
    ),
    'access arguments' => array(
      'administer autologout',
    ),
    'file' => 'autologout.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['autologout_ahah_logout'] = array(
    'title' => 'JS Logout',
    'page callback' => 'autologout_ahah_logout',
    'access callback' => 'user_is_logged_in',
    'type' => MENU_CALLBACK,
  );
  $items['autologout_ahah_set_last'] = array(
    'title' => 'JS Logout AHAH Set Last',
    'page callback' => 'autologout_ahah_set_last',
    'access callback' => 'user_is_logged_in',
    'type' => MENU_CALLBACK,
  );
  $items['autologout_ajax_get_time_left'] = array(
    'title' => 'JS Logout AJAX Get Time Until Logout',
    'page callback' => 'autologout_ahah_get_remaining_time',
    'access callback' => 'user_is_logged_in',
    'type' => MENU_CALLBACK,
  );
  return $items;
}