taxonomy_term_feed
- Versions
- 7
taxonomy_term_feed($term)
Generate the content feed for a taxonomy term.
Parameters
$term The taxonomy term.
Code
modules/taxonomy/taxonomy.pages.inc, line 65
<?php
function taxonomy_term_feed($term) {
$channel['link'] = url('taxonomy/term/' . $term->tid, array('absolute' => TRUE));
$channel['title'] = variable_get('site_name', 'Drupal') . ' - ' . $term->name;
// Only display the description if we have a single term, to avoid clutter and confusion.
// HTML will be removed from feed description.
$channel['description'] = check_markup($term->description, $term->format, '', TRUE);
$nids = taxonomy_select_nodes($term->tid, FALSE, variable_get('feed_default_items', 10));
node_feed($nids, $channel);
}
?>Login or register to post comments 