You are here

function node_gallery_upload_form_submit in Node Gallery 6.2

File

./node_gallery.pages.inc, line 59
Node gallery pages.

Code

function node_gallery_upload_form_submit($form, &$form_state) {

  //save the values for the current step into the storage array
  $form_state['storage']['steps'][$form_state['storage']['step']] = $form_state['values'];
  if ($form_state['storage']['step'] == 1) {
  }

  // check the button that was clicked and action the step change
  if ($form_state['clicked_button']['#id'] == 'edit-next') {
    $form_state['storage']['step']++;
  }

  //tell Drupal we are redrawing the same form
  $form_state['rebuild'] = TRUE;
}