You are here

function node_gallery_config_form_submit in Node Gallery 6

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

File

./node_gallery.admin.inc, line 396
Node gallery admin file.

Code

function node_gallery_config_form_submit($form, &$form_state) {
  $submit_values = array_merge($form_state['storage'], $form_state['values']);
  $gallery_config = new gallery_config($submit_values);
  $gallery_config
    ->save();
  unset($form_state['storage']);
  $form_state['rebuild'] = FALSE;
  $form_state['redirect'] = 'admin/build/node_gallery';
}