function faq_taxonomy_term_update in Frequently Asked Questions 7
Same name and namespace in other branches
- 7.2 faq.module \faq_taxonomy_term_update()
Implements hook_taxonomy_term_update().
File
- ./
faq.module, line 1593 - The FAQ module allows users to create a FAQ page, with questions and answers displayed in different styles, according to the settings.
Code
function faq_taxonomy_term_update($term) {
if (module_exists('pathauto')) {
module_load_include('inc', 'pathauto');
$vocabularies = taxonomy_get_vocabularies('faq');
$vocab_omit = variable_get('faq_omit_vocabulary', array());
foreach ($vocabularies as $vid => $vobj) {
if (isset($vocab_omit[$vid]) && $vocab_omit[$vid] != 0 || $term->vid != $vid) {
continue;
}
$alias = pathauto_create_alias('faq', 'update', _faq_path() . '/' . $term->tid, array(
'term' => $term,
));
}
}
}