You are here

public function MediaBrowserBulkUpload::view in D7 Media 7.4

Same name and namespace in other branches
  1. 7.2 modules/media_bulk_upload/includes/MediaBrowserBulkUpload.inc \MediaBrowserBulkUpload::view()
  2. 7.3 modules/media_bulk_upload/includes/MediaBrowserBulkUpload.inc \MediaBrowserBulkUpload::view()

Overrides MediaBrowserPlugin::view().

Overrides MediaBrowserUpload::view

File

modules/media_bulk_upload/includes/MediaBrowserBulkUpload.inc, line 17
Definition of MediaBrowserBulkUpload.

Class

MediaBrowserBulkUpload
Media browser plugin for showing the bulk upload form.

Code

public function view() {
  module_load_include('inc', 'file_entity', 'file_entity.pages');
  $build = array();
  if ($this->params['multiselect']) {
    $build['form'] = drupal_get_form('file_entity_add_upload_multiple', $this->params);
  }
  else {
    $build['form'] = drupal_get_form('file_entity_add_upload', $this->params);
  }
  return $build;
}