function taxonomy_render_nodes

6.x taxonomy.module taxonomy_render_nodes($result)

Accepts the result of a pager_query() call, such as that performed by taxonomy_select_nodes(), and formats each node along with a pager.

1 call to taxonomy_render_nodes()
theme_taxonomy_term_page in drupal-6.x/modules/taxonomy/taxonomy.pages.inc
Render a taxonomy term page HTML output.

File

drupal-6.x/modules/taxonomy/taxonomy.module, line 1231
Enables the organization of content into categories.

Code

function taxonomy_render_nodes($result) {
  $output = '';
  $has_rows = FALSE;
  while ($node = db_fetch_object($result)) {
    $output .= node_view(node_load($node->nid), 1);
    $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;
}