You are here

function autologout_autologout_refresh_only in Automated Logout 6.4

Same name and namespace in other branches
  1. 8 autologout.module \autologout_autologout_refresh_only()
  2. 7.4 autologout.module \autologout_autologout_refresh_only()

Implements hook_autologout_refresh_only().

1 call to autologout_autologout_refresh_only()
AutologoutTestCase::testAutlogoutOfAdminPages in tests/autologout.test
Test enforce logout on admin page settings.

File

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

Code

function autologout_autologout_refresh_only() {

  // Check to see if an open admin page will keep login alive.
  if (!variable_get('autologout_enforce_admin', FALSE)) {
    return arg(0) == 'admin' || variable_get('node_admin_theme', '0') && arg(0) == 'node' && (arg(1) == 'add' || arg(2) == 'edit');
  }
}