You are here

function theme_calendar_ical_node in Calendar 5

Same name and namespace in other branches
  1. 5.2 calendar_ical.module \theme_calendar_ical_node()

A theme for the ical nodes.

File

./calendar_ical.module, line 460
Adds ical functionality to Calendar.

Code

function theme_calendar_ical_node($node, $type) {

  // Remote nodes may come in with lengthy descriptions that won't fit
  // in small boxes of year, month, and week calendars.
  if ($type != 'calendar_node_day') {
    $node->teaser = '';
  }

  // Check plain may leave some html entities in the title.
  $node->title = html_entity_decode(check_plain($node->title), ENT_QUOTES);
  $node->teaser = check_markup($node->teaser);
  return theme($type, $node);
}