You are here

function termstatus_form_taxonomy_form_vocabulary_submit in Taxonomy Term Status 7

Form submit handler for taxonomy vocabulary form.

1 string reference to 'termstatus_form_taxonomy_form_vocabulary_submit'
termstatus_form_taxonomy_form_vocabulary_alter in ./termstatus.module
Implements hook_form_FORM_ID_alter().

File

./termstatus.module, line 152
Hook implementations and API for the taxonomy term status module.

Code

function termstatus_form_taxonomy_form_vocabulary_submit($form, &$form_state) {
  $vocabulary = $form_state['vocabulary'];
  variable_set('termstatus_default_' . $vocabulary->machine_name, $form_state['values']['termstatus_default_status']);
}