You are here

function node_gallery_config_form_submit in Node Gallery 6.2

Same name and namespace in other branches
  1. 6 node_gallery.admin.inc \node_gallery_config_form_submit()

File

./node_gallery.admin.inc, line 342
Node gallery admin page file

Code

function node_gallery_config_form_submit($form, &$form_state) {
  $submit_values = array_merge((array) $form_state['storage'], (array) $form_state['values']['config']);
  $node_gallery_id = 'node_gallery_' . $submit_values['gallery_type'];
  variable_set($node_gallery_id, $submit_values);
  unset($form_state['storage']);
  $form_state['rebuild'] = FALSE;
  $form_state['redirect'] = 'admin/settings/node_gallery';
}