function simplify_taxonomy_form_vocabulary_submit in Simplify 7.3
Custom submit function for taxonomy_form_vocabulary.
1 string reference to 'simplify_taxonomy_form_vocabulary_submit'
- simplify_form_taxonomy_form_vocabulary_alter in ./
simplify.module - Implements hook_form_FORM_ID_alter() for taxonomy_form_vocabulary.
File
- ./
simplify.module, line 260 - Simplifies the user interface by hiding particular fields.
Code
function simplify_taxonomy_form_vocabulary_submit($form, &$form_state) {
$vocabulary = $form_state['vocabulary'];
// Get fields
$fields = $form_state['values']['simplify_taxonomy'];
$fields = array_keys(array_filter($fields));
// Values aren't saved to a variable by default, so do it manually
variable_set('simplify_taxonomy_' . $vocabulary->machine_name, $fields);
}