function simplify_form_taxonomy_form_term_alter in Simplify 7.3
Implements hook_form_FORM_ID_alter() for taxonomy_form_term.
File
- ./
simplify.module, line 384 - Simplifies the user interface by hiding particular fields.
Code
function simplify_form_taxonomy_form_term_alter(&$form, &$form_state, $form_id) {
$vocabulary = $form['#vocabulary'];
// Get array of fields to hide
$global_fields = variable_get('simplify_taxonomy_global', array());
$vocabulary_fields = variable_get('simplify_taxonomy_' . $vocabulary->machine_name, array());
$fields = array_merge($global_fields, $vocabulary_fields);
// Hide fields
simplify_hide_fields($fields, $form);
}