You are here

function quiz_settings_form_submit in Quiz 7.5

Same name and namespace in other branches
  1. 6.4 quiz.admin.inc \quiz_settings_form_submit()
  2. 7.6 quiz.admin.inc \quiz_settings_form_submit()
  3. 7 quiz.admin.inc \quiz_settings_form_submit()
  4. 7.4 quiz.admin.inc \quiz_settings_form_submit()

Submit the admin settings form.

1 string reference to 'quiz_settings_form_submit'
quiz_admin_settings in ./quiz.admin.inc
This builds the main settings form for the quiz module.

File

./quiz.admin.inc, line 223
Administrator interface for Quiz module.

Code

function quiz_settings_form_submit($form, &$form_state) {
  if (QUIZ_NAME != $form_state['values']['quiz_name']) {
    variable_set('quiz_name', $form_state['values']['quiz_name']);
    define(QUIZ_NAME, $form_state['values']['quiz_name']);
    menu_rebuild();
  }
}