function file_entity_add_upload_multiple

cis7 file_entity.pages.inc file_entity_add_upload_multiple($form, &$form_state, $params = array())
cle7 file_entity.pages.inc file_entity_add_upload_multiple($form, &$form_state, $params = array())
elmsmedia7 file_entity.pages.inc file_entity_add_upload_multiple($form, &$form_state, $params = array())
icor7 file_entity.pages.inc file_entity_add_upload_multiple($form, &$form_state, $params = array())
meedjum_blog7 file_entity.pages.inc file_entity_add_upload_multiple($form, &$form_state, $params = array())
mooc7 file_entity.pages.inc file_entity_add_upload_multiple($form, &$form_state, $params = array())

Form for uploading multiple files.

2 string references to 'file_entity_add_upload_multiple'
file_entity_menu in sites/all/modules/ulmus/file_entity/file_entity.module
Implements hook_menu().
MediaBrowserUpload::view in sites/all/modules/ulmus/media/includes/MediaBrowserUpload.inc
Implements MediaBrowserPlugin::view().

File

sites/all/modules/ulmus/file_entity/file_entity.pages.inc, line 460
Supports file operations including View, Edit, and Delete.

Code

function file_entity_add_upload_multiple($form, &$form_state, $params = array()) {
  $form = file_entity_add_upload($form, $form_state, $params);
  unset($form['upload']['#title']);
  // The validators will be set from plupload anyway. This isn't pretty,
  // but don't allow it to show up twice.
  unset($form['upload']['#description']);

  $form['upload']['#type'] = 'plupload';

  // Ensure that we call the plupload_element_pre_render function.
  // If it isn't called, it doesn't set the JS settings that transfers the
  // list of allowed file extentions to the PLUpload widget.
  // We override the 'file_entity_upload_validators_pre_render' setting if it
  // exists, because both pre-render hooks adds the upload-help with list of
  // allowed file extensions.
  $index = array_search('file_entity_upload_validators_pre_render', $form['upload']['#pre_render']);
  if ($index !== FALSE) {
    $form['upload']['#pre_render'][$index] = 'plupload_element_pre_render';
  }
  else {
    $form['upload']['#pre_render'][] = 'plupload_element_pre_render';
  }

  $form['submit']['#value'] = t('Start upload');
  return $form;
}