You are here

function datex_popup_css_alter in Datex 7.3

Implements hook_css_alter().

File

datex_popup/datex_popup.module, line 75

Code

function datex_popup_css_alter(&$css) {
  foreach (array_keys($css) as $each) {
    foreach ([
      'jquery.ui.datepicker.css',
      'date_popup',
      'timeentry',
      'timepicker',
    ] as $unset) {
      if (strpos($each, $unset) !== FALSE) {
        unset($css[$each]);

        // instead use ours
        _datex_add_lib();
      }
    }
  }
}