function video_form_alter in Video 6.4
Same name and namespace in other branches
- 6.5 video.module \video_form_alter()
Implementation of hook_form_alter()
Parameters
string $form:
<type> $form_state:
<type> $form_id :
File
- ./
video.module, line 302 - video.module
Code
function video_form_alter(&$form, &$form_state, $form_id) {
if (isset($form['type']) && isset($form['#node']) && $form['type']['#value'] . '_node_form' == $form_id) {
$form['buttons']['submit']['#submit'][] = 'video_node_update_submit';
$form['#validate'][] = 'video_add_adminjs';
// Make sure the js is loaded even when the form is cached
video_add_adminjs();
}
}