| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 651 lines (24 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| date_popup_load() X-Ref |
| Load needed files. |
| date_popup_css_default() X-Ref |
| No description |
| date_popup_css_options() X-Ref |
| No description |
| date_popup_init() X-Ref |
| Implementation of hook_init(). |
| date_popup_js_settings_id($id, $func, $settings) X-Ref |
| Create a unique CSS id name and output a single inline JS block for each startup function to call and settings array to pass it. This used to create a unique CSS class for each unique combination of function and settings, but using classes requires a DOM traversal and is much slower than an id lookup. The new approach returns to requiring a duplicate copy of the settings/code for every element that uses them, but is much faster. We could combine the logic by putting the ids for each unique function/settings combo into Drupal.settings and searching for each listed id. returns: param: $pfx param: $func param: $settings |
| date_popup_theme() X-Ref |
| No description |
| date_popup_elements() X-Ref |
| Implementation of hook_elements(). Set the #type to date_popup and fill the element #default_value with a date adjusted to the proper local timezone in datetime format (YYYY-MM-DD HH:MM:SS). 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. NOTE - Converting a date stored in the database from UTC to the local zone and converting it back to UTC before storing it is not handled by this element and must be done in pre-form and post-form processing!! #date_timezone The local timezone to be used to create this date. #date_format Unlike earlier versions of this popup, most formats will work. #date_increment Increment minutes and seconds by this amount, default is 1. #date_year_range The number of years to go back and forward in a year selector, default is -3:+3 (3 back and 3 forward). |
| date_popup_process($element, $edit, $form_state, $form) X-Ref |
| Javascript popup element processing. Add popup attributes to $element. In regular FAPI processing $element['#value'] will contain a string value before the form is submitted, and an array during submission. In regular FAPI processing $edit is empty until the form is submitted when it will contain an array. Views widget processing now receives the same values as normal FAPI processing (that was not true in Views 1). |
| date_popup_process_date(&$element, $edit = NULL, $date = NULL) X-Ref |
| Process the date portion of the element. |
| date_popup_process_time(&$element, $edit = NULL, $date = NULL) X-Ref |
| Process the time portion of the element. |
| date_popup_validate($element, &$form_state) X-Ref |
| Massage the input values back into a single date. When used as a Views widget, the validation step always gets triggered, even with no form submission. Before form submission $element['#value'] contains a string, after submission it contains an array. |
| date_popup_input_value($element, $auto_complete = FALSE) X-Ref |
| Helper function for extracting a date value out of user input. param: autocomplete |
| date_popup_time_formats($with_seconds = FALSE) X-Ref |
| Allowable time formats. |
| date_popup_formats() X-Ref |
| Format options array. There are just a few options available for the earlier 'calendar' version. |
| date_format_options() X-Ref |
| Store personalized format options for each user. TODO see what is needed to remove this completely. It is now only used by Date Popup and not really needed there. return: array |
| date_popup_format_to_popup($format) X-Ref |
| Recreate a date format string so it has the values popup expects. param: string $format return: string |
| date_popup_format_to_popup_time($format) X-Ref |
| Recreate a date format string so it has the values popup expects. param: string $format return: string |
| date_popup_popup_to_format($format) X-Ref |
| Reconstruct popup format string into normal format string. param: string $format return: string |
| timepicker_format_replacements() X-Ref |
| No description |
| datepicker_format_replacements() X-Ref |
| The format replacement patterns for the new datepicker. |
| theme_date_popup($element) X-Ref |
| Format a date popup element. Use a class that will float date and time next to each other. |
| date_popup_menu() X-Ref |
| Implementation of hook_menu(). |
| date_popup_settings() X-Ref |
| General configuration form for controlling the Date Popup behaviour. |
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |