You are here

function _autologout_inactivity_message in Automated Logout 7.4

Same name and namespace in other branches
  1. 6.4 autologout.module \_autologout_inactivity_message()

Display the inactivity message if required.

1 call to _autologout_inactivity_message()
autologout_init in ./autologout.module
Implements hook_init().

File

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

Code

function _autologout_inactivity_message() {
  $message = variable_get('autologout_inactivity_message', 'You have been logged out due to inactivity.');
  drupal_alter('autologout_message', $message);
  if (!empty($message)) {
    drupal_set_message(filter_xss(t($message)), 'status', FALSE);
  }
}