You are here

function image_attach_node_form_submit in Image 6

Extra submit handler for node forms.

1 string reference to 'image_attach_node_form_submit'
image_attach_form_alter in contrib/image_attach/image_attach.module
Implementation of hook_form_alter().

File

contrib/image_attach/image_attach.module, line 454
image_attach.module

Code

function image_attach_node_form_submit(&$form, &$form_state) {

  // Clear the 0 key in the iids array that arises from selecting the 'None'
  // option. We do this here so image_attach_nodeapi() gets clean data.
  if (isset($form_state['values']['iids'][0])) {
    unset($form_state['values']['iids'][0]);
  }
}