You are here

function video_form_alter in Video 6.5

Same name and namespace in other branches
  1. 6.4 video.module \video_form_alter()

Implementation of hook_form_alter().

File

./video.module, line 332
Main file of the 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();
  }
}