class field_timer_jquery_countdown_field_timer in Field Timer 7.2
Class for field_timer_jquery_countdown_formatter and field_timer field type.
Hierarchy
- class \field_timer_formatter_base implements field_timer_formatter_interface
Expanded class hierarchy of field_timer_jquery_countdown_field_timer
File
- includes/
field_timer_jquery_countdown.inc, line 232 - Help file. Contains help classes to perform field_timer_jquery_countdown formatter related actions.
View source
class field_timer_jquery_countdown_field_timer extends field_timer_jquery_countdown_base {
/**
* @inheritdoc
*/
public function getFieldType() {
return 'field_timer';
}
/**
* @inheritdoc
*/
protected function getTimestamp($item, $field, $key = 'timestamp') {
return $item[$key];
}
/**
* @inheritdoc
*/
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');
}
}
}