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 drupal/modules/taxonomy/taxonomy.module
Implements hook_menu().

File

drupal/modules/taxonomy/taxonomy.pages.inc, line 79
Page callbacks for the taxonomy module.

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