You are here

function template_preprocess_calendar_day_node in Calendar 7

Same name in this branch
  1. 7 theme/theme.inc \template_preprocess_calendar_day_node()
  2. 7 calendar_multiday/theme/theme.inc \template_preprocess_calendar_day_node()
Same name and namespace in other branches
  1. 6.2 theme/theme.inc \template_preprocess_calendar_day_node()
  2. 6.2 calendar_multiday/theme/theme.inc \template_preprocess_calendar_day_node()
  3. 7.2 theme/theme.inc \template_preprocess_calendar_day_node()
  4. 7.2 calendar_multiday/theme/theme.inc \template_preprocess_calendar_day_node()

Format an calendar day node for display.

File

calendar_multiday/theme/theme.inc, line 792
Theme functions for the Calendar module.

Code

function template_preprocess_calendar_day_node(&$vars) {
  template_preprocess_calendar_node($vars);
  $node = $vars['node'];

  // Remote items may have a teaser to show.
  if (!empty($node->remote) && !empty($node->teaser)) {
    $fields['teaser'] = '<div class="content">' . $node->teaser . "</div>\n";
  }
}