function taxonomy_term_feed

Generate the content feed for a taxonomy term.

Parameters

$term: The taxonomy term.

1 string reference to 'taxonomy_term_feed'
taxonomy_menu in modules/taxonomy/taxonomy.module
Implements hook_menu().

File

modules/taxonomy/taxonomy.pages.inc, line 79

Code

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.