You are here

function autologout_logout in Automated Logout 6.3

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

File

./autologout.module, line 169
Used to automagically log out a user after a certain time.

Code

function autologout_logout() {
  global $user;
  if ($user->uid == 0) {
    print theme('page', t('You have been automatically logged out due to inactivity.'));
  }
  else {
    drupal_goto();
  }
}