taxonomy_rss_item
modules/taxonomy/taxonomy.module, строка 1480
- Версии
- 5 – 6
taxonomy_rss_item($node)
Provides category information for RSS feeds.
Код
<?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, NULL, NULL, TRUE)));
}
return $output;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии