You are here

protected function field_timer_jquery_countdown_date_field_base::loadJSandCSS in Field Timer 7.2

@inheritdoc

Overrides field_timer_jquery_countdown_js_base::loadJSandCSS

File

includes/field_timer_jquery_countdown.inc, line 489
Help file. Contains help classes to perform field_timer_jquery_countdown formatter related actions.

Class

field_timer_jquery_countdown_date_field_base
Base class for field_timer_jquery_countdown formatter and date field types.

Code

protected function loadJSandCSS($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
  parent::loadJSandCSS($entity_type, $entity, $field, $instance, $langcode, $items, $display);
  if ($display['settings']['regional'] != 'en') {
    $path = libraries_get_path('jquery.countdown');
    drupal_add_js($path . '/js/jquery.countdown-' . $display['settings']['regional'] . '.js');
  }
  if ($display['settings']['regional2'] != 'en') {
    $path = libraries_get_path('jquery.countdown');
    drupal_add_js($path . '/js/jquery.countdown-' . $display['settings']['regional2'] . '.js');
  }
}