function media_resource_display_upload_form in D7 Media 6
Display the upload form for the tab.
Return value
array Form array containing a file field.
1 call to media_resource_display_upload_form()
- media_upload_resource_add_file in media_upload/
media_upload.module - Implementation of registration media_upload_resource_add_file
File
- ./
media.module, line 824 - Media API
Code
function media_resource_display_upload_form() {
$form['media_upload']['upload'] = array(
'#type' => 'file',
'#title' => t('Upload your file'),
'#size' => 30,
'#attributes' => array(
'class' => 'resource select',
),
);
return $form;
}