function rh_taxonomy_form_taxonomy_form_vocabulary_alter in Rabbit Hole 7.2
Implements hook_form_FORM_ID_alter().
This will add Rabbit Hole options to the vocabulary form. These settings will be used as default for every term of this vocabulary.
File
- modules/
rh_taxonomy/ rh_taxonomy.module, line 29 - Main module file for Rabbit Hole taxonomy terms module.
Code
function rh_taxonomy_form_taxonomy_form_vocabulary_alter(&$form, $form_state) {
if (isset($form_state['confirm_delete'])) {
// We're on the delete confirmation form.
return;
}
// Add the Rabbit Hole form.
rabbit_hole_form($form, 'taxonomy_term', $form['#vocabulary']->machine_name, 'rh_taxonomy');
}