Projet

Général

Profil

Paste
Télécharger (647 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / media / includes / MediaBrowserUpload.inc @ 1f623f01

1
<?php
2

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

    
8
/**
9
 * Media browser plugin for showing the upload form.
10
 *
11
 * @deprecated
12
 */
13
class MediaBrowserUpload extends MediaBrowserPlugin {
14
  /**
15
   * Implements MediaBrowserPluginInterface::access().
16
   */
17
  public function access($account = NULL) {
18
    return file_entity_access('create', NULL, $account);
19
  }
20

    
21
  /**
22
   * Implements MediaBrowserPlugin::view().
23
   */
24
  public function view() {
25
    module_load_include('inc', 'file_entity', 'file_entity.pages');
26

    
27
    $build = array();
28
    $build['form'] = drupal_get_form('file_entity_add_upload', $this->params);
29

    
30
    return $build;
31
  }
32
}