function taxonomy_rss_item
6.x taxonomy.module | taxonomy_rss_item($node) |
Provides category information for RSS feeds.
1 call to taxonomy_rss_item()
- taxonomy_nodeapi in drupal-6.x/
modules/ taxonomy/ taxonomy.module - Implementation of hook_nodeapi().
File
- drupal-6.x/
modules/ taxonomy/ taxonomy.module, line 1329 - 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' => $term->name,
'attributes' => array('domain' => url('taxonomy/term/' . $term->tid, array('absolute' => TRUE))));
}
return $output;
}