taxonomy_rss_item

5 taxonomy.module taxonomy_rss_item($node)
6 taxonomy.module taxonomy_rss_item($node)

Provides category information for rss feeds

1 call to taxonomy_rss_item()

File

modules/taxonomy.module, line 1036
Enables the organization of content into categories.

Code

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