You are here

function fupload_node_form_validate in Image FUpload 6.3

Helper function which emulates "node_form_validate" of node.pages.inc Need this because body causes validation error with some settings, but I don't need a body field, later yes =)

1 string reference to 'fupload_node_form_validate'
image_fupload_image_form_alter in image_fupload_image/image_fupload_image.module
Implementation of hook_form_alter() registry.

File

./image_fupload.module, line 246

Code

function fupload_node_form_validate($form, &$form_state) {
  $node = (object) $form_state['values'];
  $node->body = NULL;

  // Little Hack to disable body validation
  node_validate($node, $form);
}