You are here

function autologout_logout in Automated Logout 7.2

Same name and namespace in other branches
  1. 6.2 autologout.module \autologout_logout()
  2. 6.3 autologout.module \autologout_logout()
1 string reference to 'autologout_logout'
autologout_menu in ./autologout.module
Implements hook_menu().

File

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

Code

function autologout_logout() {
  $xtra = filter_xss_admin(_autologout_local_settings('logout_message'));
  if ($xtra == '') {
    drupal_set_message(t('You have been automatically logged out due to inactivity.'));
    drupal_goto();
  }
  else {
    drupal_set_message(t($xtra));
    drupal_goto();
  }
}