function node_gallery_api_settings_menu_rebuild in Node Gallery 7
Submit handler for the Node Gallery settings form to flag the menu system as needing to be rebuilt if needed.
File
- ./
node_gallery_api.admin.inc, line 561 - Node Gallery API admin interface.
Code
function node_gallery_api_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_api_plupload_settings']['node_gallery_api_plupload_integration']['#default_value'] != $form_state['values']['node_gallery_api_plupload_integration'] || $form['node_gallery_api_plupload_settings']['node_gallery_api_plupload_wizard']['#default_value'] != $form_state['values']['node_gallery_api_plupload_wizard']) {
variable_set('menu_rebuild_needed', TRUE);
}
}