function hs_taxonomy_form_hierarchical_select_admin_settings_alter in Hierarchical Select 7.3
Implements hook_form_FORMID_alter().
Alter the Hierarchical Select admin settings form to add a checkbox to disable Hierarchical Select for taxonomy term edit forms.
File
- modules/
hs_taxonomy.module, line 25 - Implementation of the Hierarchical Select API for the Taxonomy module.
Code
function hs_taxonomy_form_hierarchical_select_admin_settings_alter(&$form, &$form_state) {
$form['taxonomy_override_selector'] = array(
'#type' => 'checkbox',
'#title' => t('Enable for taxonomy term edit forms'),
'#description' => t('If this is checked then the "Relations > Parent terms" field on taxonomy term edit pages will use hierarchical select.'),
'#default_value' => variable_get('taxonomy_override_selector', FALSE),
);
}