function date_popup_add in Date 7
Same name and namespace in other branches
- 7.3 date_popup/date_popup.module \date_popup_add()
- 7.2 date_popup/date_popup.module \date_popup_add()
Load needed files.
Play nice with jQuery UI.
3 calls to date_popup_add()
- date_popup_element_process in date_popup/
date_popup.module - Javascript popup element processing. Add popup attributes to $element.
- date_popup_input_date in date_popup/
date_popup.module - Helper function for extracting a date value out of user input.
- date_popup_validate in date_popup/
date_popup.module - Massage the input values back into a single date.
File
- date_popup/
date_popup.module, line 27 - A module to enable jquery calendar and time entry popups. Requires the Date API.
Code
function date_popup_add() {
static $loaded = FALSE;
if ($loaded) {
return;
}
drupal_add_library('system', 'ui.datepicker');
drupal_add_library('date_popup', 'timeentry');
$loaded = TRUE;
}