You are here

function _og_vocab_redirect_cancel_to_og_vocab in OG Vocabulary 6

Helper function; Redirect the 'Cancel' back to og_vocab.

Parameters

$form: The form passed by reference.

$item: The menu item.

2 calls to _og_vocab_redirect_cancel_to_og_vocab()
og_vocab_form_taxonomy_form_term_alter in ./og_vocab.module
Implementation of hook_form_FORM_ID_alter().
og_vocab_form_taxonomy_vocabulary_confirm_delete_alter in ./og_vocab.module
Implementation of hook_form_FORM-ID_alter().

File

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

Code

function _og_vocab_redirect_cancel_to_og_vocab(&$form, $item) {
  $form['actions']['cancel']['#value'] = t('<a href="!cancel">Cancel</a>', array(
    '!cancel' => url('node/' . $item['map'][1]->nid . '/og/vocab'),
  ));
}