You are here

function video_upload_v_form in Video 5

Same name and namespace in other branches
  1. 6 types/video_upload/video_upload.module \video_upload_v_form()
  2. 6.2 types/video_upload/video_upload.module \video_upload_v_form()

Implementation of hook_v_form()

File

types/video_upload/video_upload.module, line 233
Enable Uploaded videos support for video module.

Code

function video_upload_v_form(&$node, &$form) {

  //print 'form';

  // add js stuff for the 'upload in progess' message
  theme('video_upload_get_script');

  // add hidden html used for the 'upload in progess' message
  $form['#suffix'] = theme('video_upload_busy');

  // required for upload to work
  $form['#attributes']['enctype'] = 'multipart/form-data';
  $form['video'] += _video_upload_form($node);
  return $form;
}