You are here

function taxonomy_unique_taxonomy_form_vocabulary_submit in Taxonomy unique 7

Same name and namespace in other branches
  1. 8.2 taxonomy_unique.module \taxonomy_unique_taxonomy_form_vocabulary_submit()
  2. 8 taxonomy_unique.module \taxonomy_unique_taxonomy_form_vocabulary_submit()

Form submission handler for taxonomy_form_vocabulary().

1 string reference to 'taxonomy_unique_taxonomy_form_vocabulary_submit'
taxonomy_unique_form_taxonomy_form_vocabulary_alter in ./taxonomy_unique.module
Implements hook_form_FORM_ID_alter() for taxonomy_form_vocabulary().

File

./taxonomy_unique.module, line 41
Module file for the Taxonomy unique module.

Code

function taxonomy_unique_taxonomy_form_vocabulary_submit($form, &$form_state) {

  // Save custom fields to variables.
  variable_set('taxonomy_unique_' . $form_state['values']['machine_name'], $form_state['values']['unique']);
  variable_set('taxonomy_unique_' . $form_state['values']['machine_name'] . '_message', $form_state['values']['unique_message']);
}