taxonomy_rss_item

Definition

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

Description

Provides category information for RSS feeds.

Code

<?php
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, array('absolute' => TRUE))));
  }
  return $output;
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.