You are here

function autologout_create_timer in Automated Logout 6.4

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

Get the timer HTML markup.

Return value

string HTML to insert a countdown timer.

3 calls to autologout_create_timer()
autologout_ahah_get_remaining_time in ./autologout.module
AJAX callback that returns the time remaining for this user is logged out.
autologout_ahah_set_last in ./autologout.module
Ajax callback to reset the last access session variable.
autologout_create_block_form in ./autologout.module
Drupal reset timer form on timer block.

File

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

Code

function autologout_create_timer() {
  $time_remaining = _autologout_get_remaining_time();
  $timeformat = filter_xss_admin(variable_get('autologout_jstimer_format', '%hours%:%mins%:%secs%'));
  return theme('autologout_block', array(
    'time_remaining' => $time_remaining,
    'timeformat' => $timeformat,
  ));
}