Experimental project

This is a sandbox project, which contains experimental code for developer use only.

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

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • Project categories: Developer tools, Security
  • Created by Chris Charlton on , updated