1

How can I use video module drupal 7 version with Custom form to create a field behave exactly the field on the node form? To do so I created a form with video field type but its not displaying anything

$form['file'] = array(
    '#type' => 'video',
    '#name' => 'files[]',
    '#title' => t('Upload some videos'),
    '#attributes' => array('multiple' => 'multiple'),
);

I used this From the test file of video.The filename is. VideoField.test

miteshmap
  • 103
  • 1
  • 8
  • I am looking for a solution for the same task, but unfortunately did'n find any yet. Did you find a solution for this? – o15a3d4l11s2 Dec 11 '12 at 13:29
  • unfortunately I didn't find anything to add new field to custom form. But i found way to include a node's video field to custom form. here is the link. http://stackoverflow.com/questions/12854424/add-cck-field-to-custom-form-in-drupal-7/ – miteshmap Jan 27 '13 at 09:39

0 Answers0