function taxonomy_render_nodes in Drupal 4
Same name and namespace in other branches
- 5 modules/taxonomy/taxonomy.module \taxonomy_render_nodes()
- 6 modules/taxonomy/taxonomy.module \taxonomy_render_nodes()
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()
- taxonomy_term_page in modules/
taxonomy.module - Menu callback; displays all nodes associated with a term.
File
- modules/
taxonomy.module, line 1141 - Enables the organization of content into categories.
Code
function taxonomy_render_nodes($result) {
if (db_num_rows($result) > 0) {
while ($node = db_fetch_object($result)) {
$output .= node_view(node_load($node->nid), 1);
}
$output .= theme('pager', NULL, variable_get('default_nodes_main', 10), 0);
}
else {
$output .= t('There are currently no posts in this category.');
}
return $output;
}