You are here

function theme_calendar_view_nodes in Calendar 5

Same name and namespace in other branches
  1. 5.2 calendar.theme \theme_calendar_view_nodes()

Display the nodes of a view as plain nodes.

1 theme call to theme_calendar_view_nodes()
theme_calendar_view_calendar in ./calendar.theme
Calendar Views plugin theme, overrides default views theme to create a calendar view.

File

./calendar.theme, line 118

Code

function theme_calendar_view_nodes($view, $nodes, $type, $teasers = false, $links = true) {
  $output = array();
  foreach ($nodes as $n) {
    $node = node_load($n->nid);
    $output[] = node_view($node, $teasers, false, $links);
  }
  $output = array_merge($output, (array) calendar_add_items($view, $teasers ? 'teasers' : 'nodes'));
  return implode($output);
}