You are here

function og_vocab_admin_settings_submit in OG Vocabulary 7

Submit handler; Re-build the menu tree.

See also

og_vocab_menu_alter().

File

includes/og_vocab.admin.inc, line 27
OG-vocab admin settings

Code

function og_vocab_admin_settings_submit($form, &$form_state) {
  if (variable_get('og_vocab_term_page_access', FALSE) != $form_state['values']['og_vocab_term_page_access']) {

    // Rebuild the menu tree.
    variable_set('menu_rebuild_needed', TRUE);
  }
}