taxonomy_node_update_index
modules/taxonomy/taxonomy.module, строка 1356
- Версии
- 5 – 6
taxonomy_node_update_index(&$node)
Implementation of hook_nodeapi('update_index'
).
Код
<?php
function taxonomy_node_update_index(&$node) {
$output = array();
foreach ($node->taxonomy as $term) {
$output[] = $term->name;
}
if (count($output)) {
return '<strong>('. implode(', ', $output) .')</strong>';
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии