taxonomy_rss_item

Definition

taxonomy_rss_item($node)
modules/taxonomy.module, line 1036

Description

Provides category information for rss feeds

Code

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

Drupal is a registered trademark of Dries Buytaert.