You are here

function quickbar_configure_form_submit in Quickbar 6

Same name and namespace in other branches
  1. 7.2 quickbar.admin.inc \quickbar_configure_form_submit()
  2. 7 quickbar.admin.inc \quickbar_configure_form_submit()

Submit handler for quickbar_configure_form()

See also

quickbar_configure_form()

File

./quickbar.admin.inc, line 200
Handles quickbar administration

Code

function quickbar_configure_form_submit(&$form, &$form_state) {

  // Set the value of the iconset.
  variable_set('quickbar_iconset_' . $form_state['rid'], $form_state['values']['iconset']);

  // Set the value of the sticky status.
  variable_set('quickbar_sticky_' . $form_state['rid'], $form_state['values']['sticky']);

  // Set the value of the nofollow status.
  variable_set('quickbar_nofollow_' . $form_state['rid'], $form_state['values']['nofollow']);
  drupal_set_message('The toolbar settings have been saved.');

  // Go back to the quickbar form.
  $form_state['redirect'] = 'admin/settings/quickbar';
}