function img_assist_form_alter in Image Assist 6
Same name and namespace in other branches
- 5.3 img_assist.module \img_assist_form_alter()
- 5 img_assist.module \img_assist_form_alter()
- 5.2 img_assist.module \img_assist_form_alter()
- 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
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',
);
}
}