You are here

class MediaBrowserBulkUpload in D7 Media 7.3

Same name and namespace in other branches
  1. 7.4 modules/media_bulk_upload/includes/MediaBrowserBulkUpload.inc \MediaBrowserBulkUpload
  2. 7.2 modules/media_bulk_upload/includes/MediaBrowserBulkUpload.inc \MediaBrowserBulkUpload

Media browser plugin for showing the bulk upload form.

Hierarchy

Expanded class hierarchy of MediaBrowserBulkUpload

1 string reference to 'MediaBrowserBulkUpload'
media_bulk_upload_media_browser_plugin_info_alter in modules/media_bulk_upload/media_bulk_upload.module
Implements hook_media_browser_plugin_info_alter().

File

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

View source
class MediaBrowserBulkUpload extends MediaBrowserUpload {

  /**
   * Overrides MediaBrowserPlugin::view().
   */
  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;
  }

}

Members