You are here

protected function field_timer_jquery_countdown_led_base::loadJSandCSS in Field Timer 7.2

@inheritdoc

Overrides field_timer_jquery_countdown_js_base::loadJSandCSS

1 call to field_timer_jquery_countdown_led_base::loadJSandCSS()
field_timer_jquery_countdown_led_base::renderItems in includes/field_timer_jquery_countdown_led.inc
@inheritdoc

File

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

Class

field_timer_jquery_countdown_led_base
Base class for field_timer_jquery_countdown_led formatter.

Code

protected function loadJSandCSS($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
  parent::loadJSandCSS($entity_type, $entity, $field, $instance, $langcode, $items, $display);

  // Since we can't get path to image from CSS file, we add this rule here.
  $path = libraries_get_path('jquery.countdown');
  drupal_add_css('.jquery-countdown-led.green span{background: url(/' . $path . '/img/countdownLED.png) no-repeat 0px 0px;} .jquery-countdown-led.blue span{background: url(/' . $path . '/img/countdownGlowing.gif) no-repeat 0px 0px;}', 'inline');
}