You are here

function biblio_admin_settings_form_submit in Bibliography Module 6

Same name and namespace in other branches
  1. 6.2 includes/biblio.admin.inc \biblio_admin_settings_form_submit()
  2. 7 includes/biblio.admin.inc \biblio_admin_settings_form_submit()
  3. 7.2 includes/biblio.admin.inc \biblio_admin_settings_form_submit()
1 string reference to 'biblio_admin_settings_form_submit'
biblio_admin_settings in ./biblio.admin.inc
Implementation of hook_settings().

File

./biblio.admin.inc, line 644

Code

function biblio_admin_settings_form_submit($form, $form_state) {
  if ($form_state['values']['biblio_keyword_freetagging'] && $form_state['values']['biblio_keyword_vocabulary']) {
    if ($vocabulary = taxonomy_vocabulary_load(variable_get('biblio_keyword_vocabulary', 0))) {
      $vocabulary = (array) $vocabulary;
      $vocabulary['nodes']['biblio'] = 1;
      taxonomy_save_vocabulary($vocabulary);
    }
  }
  menu_rebuild();
}