You are here

function taxonomy_list_render_nodes in Taxonomy List 7

Our version of a function that used to be in Taxonomy.

File

./taxonomy_list.module, line 812
List all terms in a vocabulary.

Code

function taxonomy_list_render_nodes($result) {
  $output = '';
  $has_rows = FALSE;
  foreach ($result as $node) {
    $output .= node_view(node_load($node->nid));
    $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;
}