You are here

function commons_connect_taxonomy_render_nodes in Drupal Commons 6.2

1 call to commons_connect_taxonomy_render_nodes()
commons_connect_taxonomy_term_page in themes/commons_connect/template.php

File

themes/commons_connect/template.php, line 320

Code

function commons_connect_taxonomy_render_nodes($result) {
  $output = '';
  $has_rows = FALSE;
  while ($node = db_fetch_object($result)) {
    $output .= node_view(node_load($node->nid), TRUE, FALSE, FALSE);
    $has_rows = TRUE;
  }
  if ($has_rows) {
    $output .= theme('pager', NULL, variable_get('default_nodes_main', 10), 0);
  }
  else {
    $output .= '<p>' . t('There are currently no posts in this category.') . '</p>';
  }
  return $output;
}