Contributions API

Calling all Drupal developers!

Help us get this on the first page of Digg. DIGG NOW!

Modules in 6

date_popup.module

Version

1.42.2.1 (checked in on 2008/05/08 at 15:22:11 by karens)

Description

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.

Functions

Namesort iconDescription
date_popup_date_formatsAllowable date formats.
date_popup_elementsImplementation of hook_elements().
date_popup_formats
date_popup_format_to_popupRecreate a date format string so it has the values popup expects.
date_popup_format_to_popup_timeRecreate a date format string so it has the values popup expects.
date_popup_initImplementation of hook_init().
date_popup_input_valueHelper function for extracting a date value out of user input.
date_popup_js_settings_classCreate 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_loadLoad needed files.
date_popup_popup_to_formatReconstruct popup format string into normal format string.
date_popup_processJavascript popup element processing. Add popup attributes to $element.
date_popup_process_dateProcess the date portion of the element.
date_popup_process_timeProcess the time portion of the element.
date_popup_theme
date_popup_time_formatsAllowable time formats.
date_popup_validateMassage the input values back into a single date.
theme_date_popupFormat a date popup element.