Form Timeout
Categories
Component ID
1379592
Component name
Form Timeout
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
This module provides developers a `timeout` attribute for forms (Form API).
One example use is having a form that says "Fill this form out in the next 3 minutes and be entered to win a free car!"
A code example for developers:
<?php
function mycustommodule_form_alter(&$form, &$form_state, $form_id) {
$form['timeout'] = '+3 minutes'; // Uses PHP's strtotime() function
}
?>Example values
- +30 seconds
- +10 minutes
- +12 hours
- +1 day
