You are here

function taxonomy_rss_item in Drupal 5

Same name and namespace in other branches
  1. 4 modules/taxonomy.module \taxonomy_rss_item()
  2. 6 modules/taxonomy/taxonomy.module \taxonomy_rss_item()

Provides category information for RSS feeds.

1 call to taxonomy_rss_item()
taxonomy_nodeapi in modules/taxonomy/taxonomy.module
Implementation of hook_nodeapi().

File

modules/taxonomy/taxonomy.module, line 1479
Enables the organization of content into categories.

Code

function taxonomy_rss_item($node) {
  $output = array();
  foreach ($node->taxonomy as $term) {
    $output[] = array(
      'key' => 'category',
      'value' => check_plain($term->name),
      'attributes' => array(
        'domain' => url('taxonomy/term/' . $term->tid, NULL, NULL, TRUE),
      ),
    );
  }
  return $output;
}