function img_assist_form_alter in Image Assist 5
Same name and namespace in other branches
- 5.3 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()
- 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 650 - 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(),
);
}
}