You are here

function og_vocab_form_taxonomy_vocabulary_confirm_delete_alter in OG Vocabulary 6

Implementation of hook_form_FORM-ID_alter().

Redirect the cancel back to og_vocab.

File

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

Code

function og_vocab_form_taxonomy_vocabulary_confirm_delete_alter(&$form, &$form_state) {
  $item = menu_get_item();
  if ($item['path'] == 'node/%/og/vocab/edit/vocabulary/%') {
    _og_vocab_redirect_cancel_to_og_vocab($form, $item);
  }
}