Return to Snippet

Revision: 8162
at September 5, 2008 06:23 by shrop


Initial Code
/**
 * Display a summary version of a view. Remove node count.
 */
function phptemplate_views_summary($view, $type, $level, $nodes, $args) {
  foreach ($nodes as $node) {
    $items[] = views_get_summary_link($view->argument[$level]['type'], $node, $view->real_url);
  }
  if ($items) {
    $output .= theme('item_list', $items);
  }

  return $output;
}

Initial URL


Initial Description
Insert into your phptemplate theme's template.php file to override the original View theme code.

Initial Title
Drupal Views 1 - remove node count from summary listings

Initial Tags
drupal

Initial Language
PHP