You are here

function _autologout_prevent in Automated Logout 6.4

Same name and namespace in other branches
  1. 7.4 autologout.module \_autologout_prevent()

Determine if autologout should be prevented.

Return value

bool TRUE if there is a reason not to autologout the current user on the current page.

3 calls to _autologout_prevent()
autologout_footer in ./autologout.module
Implements hook_footer().
autologout_init in ./autologout.module
Implements hook_init().
_autologout_block_view in ./autologout.module
Block view.

File

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

Code

function _autologout_prevent() {
  foreach (module_invoke_all('autologout_prevent') as $prevent) {
    if (!empty($prevent)) {
      return TRUE;
    }
  }
  return FALSE;
}