| Versionen | |
|---|---|
| drupal6 | taxonomy_rss_item($node) |
Provides category information for RSS feeds.
modules/
<?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;
}
?>
Kommentare
Kommentar hinzufügen