function kaltura_uploader_form in Kaltura 7.3
Form constructor to upload media files to Kaltura.
See also
kaltura_uploader_form_submit()
1 string reference to 'kaltura_uploader_form'
- kaltura_uploader in ./
kaltura.module - Kaltura uploader.
File
- ./
kaltura_upload.inc, line 14 - Kaltura media upload functions.
Code
function kaltura_uploader_form($form, &$form_state) {
// Do not specify the #upload_location to not move the file from the temporary
// directory.
$form['media'] = array(
'#title' => t('File'),
'#title_display' => 'invisible',
'#type' => 'managed_file',
'#required' => TRUE,
'#progress_indicator' => 'bar',
'#upload_validators' => array(
// Set this validator but with no extensions in order to accept any.
'file_validate_extensions' => array(),
'kaltura_uploader_validate_file' => array(),
),
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Upload'),
);
return $form;
}