timer_project.pngTimer defines a CCK field type for a timer, which can be started, stopped and reset via timer button controls or workflow actions. Timer fields can be shown in real-time with DHTML or only updated on page refresh. Timer button controls can be restricted by both field setting and Use timer controls access permissions.

Prerequisites
The Content Contruction Kit content.module is enabled. Optionally, workflow.module and actions.module enabled.

Installation

  1. copy the timer directory and all its contents to your modules directory
  2. enable the module: admin/build/modules
  3. set access permissions for roles: admin/user/access
  4. add the Timer field widget to your node type
  5. (optional) create Start/Stop/Reset actions for your node type
  6. (optional) add Timer actions to workflow associated with your node type

Timer Controls
timer_control.png
Timer controls will be shown only if the user has Use timer controls permission and the timer controls are enabled for the field. A demo of the timer controls can be found here.

Timer Actions

timer_action_0.png

Timer Actions are configured by choosing the action (e.g. start, stop, reset) and then selecting the Timer field on which to perform the action (highlighted). All node types with a timer field will be shown in the drop down box. There is no mechanism to determine that the workflow is associated with the same node type as indicated in the action, but if not, the action will exit gracefully and throw an error log entry.

Download
Download package and report bugs, feature requests, or submit a patch from the project page on the Drupal web site.

Todo List

  • elapsed timer with expiration
  • countdown timer with expiration

Credits
Module development sponsored by LifeWire, a subsidiary of The New York Times Company.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Highlighted PHP code can be posted with <?php ... ?> tags.

More information about formatting options

Captcha
We're only human... Captcha is a simple challenge-response test to make sure you are too.
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.