You are here

function _autologout_inactivity_message in Automated Logout 6.4

Same name and namespace in other branches
  1. 7.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 700
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.');
  if (!empty($message)) {
    drupal_set_message(t($message));
  }
}