You are here

function _autologout_prevent in Automated Logout 7.4

Same name and namespace in other branches
  1. 6.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_block_view in ./autologout.module
Implements hook_block_view().
autologout_init in ./autologout.module
Implements hook_init().
autologout_page_build in ./autologout.module
Implements hook_page_build().

File

./autologout.module, line 711
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;
}