function autologout_menu in Automated Logout 7.4
Same name and namespace in other branches
- 5 autologout.module \autologout_menu()
- 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()
Implements hook_menu().
File
- ./
autologout.module, line 27 - Used to automagically log out a user after a preset time.
Code
function autologout_menu() {
$items = array();
$items['admin/config/people/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,
'theme callback' => 'ajax_base_page_theme',
'delivery callback' => 'ajax_deliver',
);
$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,
'theme callback' => 'ajax_base_page_theme',
'delivery callback' => 'ajax_deliver',
);
return $items;
}