You are here

function theme_views_summary in Views (for Drupal 7) 5

Display a summary version of a view.

File

./views.module, line 1590

Code

function theme_views_summary($view, $type, $level, $nodes, $args) {
  foreach ($nodes as $node) {
    $items[] = views_get_summary_link($view->argument[$level]['type'], $node, $view->real_url) . " (" . $node->num_nodes . ")";
  }
  if ($items) {
    $output .= theme('item_list', $items);
  }
  return $output;
}