You are here

function image_form_submit in Image 6

1 string reference to 'image_form_submit'
image_form in ./image.module
Implementation of hook_form().

File

./image.module, line 428

Code

function image_form_submit($form, &$form_state) {
  if (!empty($_SESSION['image_upload'])) {
    $form_state['values']['images'] = $_SESSION['image_upload'];
    $form_state['values']['new_file'] = TRUE;
    unset($_SESSION['image_upload']);
  }
}