taxonomy_rss_item

Versions
4.6 – 6
taxonomy_rss_item($node)

Provides category information for RSS feeds.

Code

modules/taxonomy/taxonomy.module, line 1249

<?php
function taxonomy_rss_item($node) {
  $output = array();
  foreach ($node->taxonomy as $term) {
    $output[] = array('key'   => 'category',
                      'value' => $term->name,
                      'attributes' => array('domain' => url('taxonomy/term/'. $term->tid, array('absolute' => TRUE))));
  }
  return $output;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.