Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
A simple time period widget and formatter for time periods stored in seconds.
Time periods can be entered using multiple units, whereas the module currently allows
using days, hours, minutes and seconds. Each unit can be enabled separately
and the maximum value and step size can be configured.
Similar modules
Duration:Duration is a fully fledged API coming with suiting form elements and a CCK field (currently D6 only). The Duration module handles durations including the complex cases of durations specified in years and months, which need special treatment if applied to a date. Thus the duration module comes with its own storage for durations, whereas Time period just cares about the simple case of durations stored in seconds.
Interval Field: The Interval Field stores intervals as given (e.g. 3 days), whereas Time period just works with an integer field containing the duration stored in seconds. Also, the interval field allows specifying intervals only using one unit (e.g. 4 hours), whereby Time-period allows specifying multiple units at once; e.g. "4 hours, 20 minutes".
"Automatic Entity Label" is a small and efficient module that allows hiding of entity label fields. To prevent empty labels it can be configured to generate the label automatically by a given pattern.
This can be used on any entity type, including e.g. for node titles, comment subjects, taxonomy term names and profile2 labels.
Patterns for automatic labels can be constructed with tokens. Drupal core provides a basic set of tokens. For a token selection widget install the token module. Some entity types (e.g. profile2) provide tokens via the entity_token module (part of entity).
Advanced users can use PHP code for automatically generating labels.