You are here

function date_popup_css_default in Date 6.2

2 calls to date_popup_css_default()
date_popup_init in date_popup/date_popup.module
Implementation of hook_init().
date_popup_settings in date_popup/date_popup.module
General configuration form for controlling the Date Popup behaviour.

File

date_popup/date_popup.module, line 44
A module to enable jquery calendar and time entry popups. Requires the Date API.

Code

function date_popup_css_default() {
  if (!module_exists('jquery_ui')) {
    return '';
  }
  $version = jquery_ui_get_version();
  $jquery_ui_path = drupal_get_path('module', 'jquery_ui');
  switch ($version) {
    case '1.6':
      return drupal_get_path('module', 'date_popup') . '/themes/datepicker.css';
    default:
      return drupal_get_path('module', 'date_popup') . '/themes/datepicker.1.7.css';
  }
}