Drupal Views 1 - remove node count from summary listings


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. /**
  2.  * Display a summary version of a view. Remove node count.
  3.  */
  4. function phptemplate_views_summary($view, $type, $level, $nodes, $args) {
  5. foreach ($nodes as $node) {
  6. $items[] = views_get_summary_link($view->argument[$level]['type'], $node, $view->real_url);
  7. }
  8. if ($items) {
  9. $output .= theme('item_list', $items);
  10. }
  11.  
  12. return $output;
  13. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.