You are here

function node_gallery_settings_menu_rebuild in Node Gallery 6.3

Submit handler for the Node Gallery settings form to flag the menu system as needing to be rebuilt if needed.

1 string reference to 'node_gallery_settings_menu_rebuild'
node_gallery_settings_form in ./node_gallery.admin.inc
Displays the form at admin/settings/node_gallery/settings.

File

./node_gallery.admin.inc, line 161

Code

function node_gallery_settings_menu_rebuild($form, &$form_state) {

  // If either plupload integration is toggled, or the Create content link is
  // changed, the menu system needs to be rebuilt.
  if ($form['node_gallery_plupload_settings']['node_gallery_plupload_integration']['#default_value'] != $form_state['values']['node_gallery_plupload_integration'] || $form['node_gallery_plupload_settings']['node_gallery_plupload_wizard']['#default_value'] != $form_state['values']['node_gallery_plupload_wizard']) {
    variable_set('menu_rebuild_needed', TRUE);
  }
}