function rh_taxonomy_form_taxonomy_form_term_alter in Rabbit Hole 7.2
Implements hook_form_FORM_ID_alter().
This will add Rabbit Hole options to the taxonomy term form. The user will be able to override the default Rabbit Hole options.
File
- modules/
rh_taxonomy/ rh_taxonomy.module, line 70 - Main module file for Rabbit Hole taxonomy terms module.
Code
function rh_taxonomy_form_taxonomy_form_term_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['#bundle'], 'rh_taxonomy', (object) $form['#term']);
}