function autologout_create_block_form in Automated Logout 6.4
Same name and namespace in other branches
- 7.4 autologout.module \autologout_create_block_form()
Drupal reset timer form on timer block.
1 string reference to 'autologout_create_block_form'
- _autologout_block_view in ./
autologout.module - Block view.
File
- ./
autologout.module, line 117 - Used to automagically log out a user after a preset time.
Code
function autologout_create_block_form(&$form_state) {
$markup = autologout_create_timer();
$form['autologout_reset'] = array(
'#type' => 'button',
'#value' => t('Reset Timeout'),
'#weight' => 1,
'#limit_validation_errors' => FALSE,
'#executes_submit_callback' => FALSE,
'#ahah' => array(
'event' => 'click',
'path' => 'autologout_ahah_set_last',
'wrapper' => 'timer',
'method' => 'replace',
),
);
$form['timer'] = array(
'#type' => 'markup',
'#value' => $markup,
);
return $form;
}