You are here

function og_vocab_form_taxonomy_form_vocabulary_validate in OG Vocabulary 7

Validate handler; Redirect back to taxonomy overview.

1 string reference to 'og_vocab_form_taxonomy_form_vocabulary_validate'
og_vocab_form_taxonomy_form_vocabulary_alter in ./og_vocab.module
Implements hook_form_FORM-ID_alter().

File

./og_vocab.module, line 1286
Give each group its own system controlled vocabularies.

Code

function og_vocab_form_taxonomy_form_vocabulary_validate(&$form, $form_state) {

  // TODO: Why do we need to set the $_GET['destination']?
  $group_type = $form_state['values']['og_vocab_relation']['group_type'];
  $gid = $form_state['values']['og_vocab_relation']['gid'];
  $_GET['destination'] = $form_state['redirect'] = "group/{$group_type}/{$gid}/admin/taxonomy";
}