function theme_date_display_interval

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 date.theme theme_date_display_interval($variables)
cle7 date.theme theme_date_display_interval($variables)
elmsmedia7 date.theme theme_date_display_interval($variables)
icor7 date.theme theme_date_display_interval($variables)
meedjum_blog7 date.theme theme_date_display_interval($variables)
mooc7 date.theme theme_date_display_interval($variables)

Returns HTML for a date element formatted as an interval.

Related topics

1 theme call to theme_date_display_interval()
date_field_formatter_view in sites/all/modules/ulmus/date/date.field.inc
Implements hook_field_formatter_view().
2 string references to the theme hook from theme_date_display_interval()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

date_field_formatter_view in sites/all/modules/ulmus/date/date.field.inc
Implements hook_field_formatter_view().
date_theme in sites/all/modules/ulmus/date/date.module
Implements hook_theme().

File

sites/all/modules/ulmus/date/date.theme, line 338
Theme functions.

Code

function theme_date_display_interval($variables) {
  $entity = $variables['entity'];
  $options = $variables['display']['settings'];
  $dates = $variables['dates'];
  $attributes = $variables['attributes'];

  // Get the formatter settings, either the default settings for this node type
  // or the View settings stored in $entity->date_info.
  if (!empty($entity->date_info) && !empty($entity->date_info->formatter_settings)) {
    $options = $entity->date_info->formatter_settings;
  }

  $time_ago_vars = array(
    'start_date' => $dates['value']['local']['object'],
    'end_date' => $dates['value2']['local']['object'],
    'interval' => $options['interval'],
    'interval_display' => $options['interval_display'],
  );

  if ($return = theme('date_time_ago', $time_ago_vars)) {
    return '<span class="date-display-interval"' . drupal_attributes($attributes) . ">$return</span>";
  }
  else {
    return '';
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.