Project

General

Profile

Paste
Download (641 Bytes) Statistics
| Branch: | Revision:

root / drupal7 / sites / all / modules / media / modules / media_bulk_upload / includes / MediaBrowserBulkUpload.inc @ 2b3c8cc1

1
<?php
2

    
3
/**
4
 * @file
5
 * Definition of MediaBrowserBulkUpload.
6
 */
7

    
8
/**
9
 * Media browser plugin for showing the bulk upload form.
10
 *
11
 * @deprecated
12
 */
13
class MediaBrowserBulkUpload extends MediaBrowserUpload {
14
  /**
15
   * Overrides MediaBrowserPlugin::view().
16
   */
17
  public function view() {
18
    module_load_include('inc', 'file_entity', 'file_entity.pages');
19

    
20
    $build = array();
21
    if ($this->params['multiselect']) {
22
      $build['form'] = drupal_get_form('file_entity_add_upload_multiple', $this->params);
23
    }
24
    else {
25
      $build['form'] = drupal_get_form('file_entity_add_upload', $this->params);
26
    }
27

    
28
    return $build;
29
  }
30
}