Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
1.42.2.1 (checked in on 2008/05/08 at 15:22:11 by karens)
A module to enable jquery calendar and time entry popups. Requires the Date API.
Add a type of #date_popup to any date, time, or datetime field that will use this popup. Set #date_format to the way the date should be presented to the user in the form. Set #default_value to be a date in the local timezone, and note the timezone name in #date_timezone.
The element will create two textfields, one for the date and one for the time. The date textfield will include a jQuery popup calendar date picker, and the time textfield uses a jQuery timepicker.
If no time elements are included in the format string, only the date textfield will be created. If no date elements are included in the format string, only the time textfield, will be created.
| Name | Description |
|---|---|
| date_popup_date_formats | Allowable date formats. |
| date_popup_elements | Implementation of hook_elements(). |
| date_popup_formats | |
| date_popup_format_to_popup | Recreate a date format string so it has the values popup expects. |
| date_popup_format_to_popup_time | Recreate a date format string so it has the values popup expects. |
| date_popup_init | Implementation of hook_init(). |
| date_popup_input_value | Helper function for extracting a date value out of user input. |
| date_popup_js_settings_class | Create a unique CSS class name and output a single inline JS block for each unique combination of startup function to call and settings array to pass it. This allows the dynamic use of any number of custom settings without requiring a duplicate copy... |
| date_popup_load | Load needed files. |
| date_popup_popup_to_format | Reconstruct popup format string into normal format string. |
| date_popup_process | Javascript popup element processing. Add popup attributes to $element. |
| date_popup_process_date | Process the date portion of the element. |
| date_popup_process_time | Process the time portion of the element. |
| date_popup_theme | |
| date_popup_time_formats | Allowable time formats. |
| date_popup_validate | Massage the input values back into a single date. |
| theme_date_popup | Format a date popup element. |