date_popup_add
Drupal 7 date_popup_add()
Load needed files.
Play nice with jQuery UI.
3 calls to date_popup_add()
File
- sites/
all/ modules/ date/ 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');
// Add the wvega-timepicker library if it's available.
$wvega_path = date_popup_get_wvega_path();
if ($wvega_path) {
drupal_add_js($wvega_path . '/jquery.timepicker.js');
drupal_add_css($wvega_path . '/jquery.timepicker.css');
}
$loaded = TRUE;
}

