protected function field_timer_jquery_countdown_field_timer::loadJSandCSS in Field Timer 7.2
@inheritdoc
Overrides field_timer_jquery_countdown_js_base::loadJSandCSS
File
- includes/
field_timer_jquery_countdown.inc, line 251 - Help file. Contains help classes to perform field_timer_jquery_countdown formatter related actions.
Class
- field_timer_jquery_countdown_field_timer
- Class for field_timer_jquery_countdown_formatter and field_timer field type.
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');
}
}