function pack_upload_media_upload_form in Pack & Upload 7
Form constructor for the pack and upload media form.
1 string reference to 'pack_upload_media_upload_form'
- pack_upload_menu in ./
pack_upload.module - Implements hook_menu().
File
- ./
pack_upload.module, line 78 - This is the module file for pack and upload.
Code
function pack_upload_media_upload_form() {
$form = array();
$form['panel'] = array(
'#title' => t('Bulk Media Uploader'),
'#type' => 'fieldset',
);
$form['panel']['file'] = array(
'#title' => t('Upload file'),
'#type' => 'file',
'#description' => t('Create package of media files, for e.g., PDFs, images, text files and upload to Drupal. Valid extensions are .zip, .tar.gz, .tar. All files will be extracted to !directory', array(
'!directory' => file_build_uri(variable_get('pack_upload_bulk_media_path')),
)),
);
$form['panel']['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);
return $form;
}