| Versionen | |
|---|---|
| drupal7 | hook_taxonomy_vocabulary_update($term) |
Act on taxonomy vocabularies when updated.
Modules implementing this hook can act on the term object when updated.
$term A taxonomy term object, passed by reference.
modules/
<?php
function hook_taxonomy_vocabulary_update($term) {
$status = $vocabulary->synonyms ? TRUE : FALSE;
if ($vocabulary->synonyms) {
variable_set('taxonomy_' . $vocabulary->vid . '_synonyms', $status);
}
}
?>
Kommentare
Kommentar hinzufügen