You are here

function node_gallery_upload_form_validate in Node Gallery 6

File

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

Code

function node_gallery_upload_form_validate($form, $form_state) {

  //bad hacks, since we use ahah, we have to validate the upload image nodes here.
  if (!empty($form_state['values']['files'])) {
    foreach ($form_state['values']['files'] as $key => $image_form_state) {
      node_validate($image_form_state['edit_form'], $form['files'][$key]['edit_form']);
    }
  }
}