You are here

function _quotes_settings_form_submit in Quotes 7

Same name and namespace in other branches
  1. 6 quotes.admin.inc \_quotes_settings_form_submit()

Check the menu settings for changes.

1 string reference to '_quotes_settings_form_submit'
quotes_admin_settings in ./quotes.admin.inc
Displays the general admin settings form.

File

./quotes.admin.inc, line 201
The quotes module allows users to maintain a list of quotes that can be displayed in any number of administrator-defined quote blocks.

Code

function _quotes_settings_form_submit($form, $form_state) {
  if ($form_state['values']['quotes_show_myquotes'] != $form_state['values']['quotes_show_myquotes_original'] || $form_state['values']['quotes_quick_nav'] != $form_state['values']['quotes_quick_nav_original']) {

    // Force the menu to be rebuilt on next page load.
    variable_set('menu_rebuild_needed', TRUE);
    drupal_set_message(t('The menu will be rebuilt.'));
  }
}