You are here

function img_assist_form_alter in Image Assist 6

Same name and namespace in other branches
  1. 5.3 img_assist.module \img_assist_form_alter()
  2. 5 img_assist.module \img_assist_form_alter()
  3. 5.2 img_assist.module \img_assist_form_alter()
  4. 6.2 img_assist.module \img_assist_form_alter()

Implementation of hook_form_alter().

Reroute submit button callback to our own handler to be able to redirect the user after saving the node.

See also

img_assist_node_form_submit()

Related topics

File

./img_assist.module, line 663
Image Assist module

Code

function img_assist_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'image_node_form' && arg(0) == 'img_assist') {
    $form['buttons']['submit']['#submit'] = array(
      'img_assist_node_form_submit',
    );
  }
}