function taxonomy_node_view in Coder 7
Same name and namespace in other branches
- 7.2 coder_upgrade/tests/old/samples/example.module \taxonomy_node_view()
An implementation of hook_node_view().
File
- coder_upgrade/
tests/ old/ samples/ example.module, line 2311
Code
function taxonomy_node_view($node) {
if ($node->build_mode == NODE_BUILD_RSS) {
foreach ($node->taxonomy as $term) {
$node->rss_elements[] = array(
'key' => 'category',
'value' => $term->name,
'attributes' => array(
'domain' => url(taxonomy_term_path($term), array(
'absolute' => TRUE,
)),
),
);
}
}
}