You are here

function img_assist_form_alter in Image Assist 5.3

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

Implementation of hook_form_alter().

Add a submit callback to image_node_form which alters the redirect.

Related topics

File

./img_assist.module, line 733
Image Assist module

Code

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