You are here

function media_add_upload_multiple in D7 Media 7

1 string reference to 'media_add_upload_multiple'
media_media_browser_plugin_view in ./media.media.inc
Implements hook_media_browser_plugin_view().

File

includes/media.pages.inc, line 267
Common pages for the Media module.

Code

function media_add_upload_multiple($form, &$form_state, $params = array()) {
  $form = media_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
  // it to show up twice.
  unset($form['upload']['#description']);
  $form['upload']['#type'] = 'plupload';
  $form['submit']['#value'] = t('Start upload');
  return $form;
}