Projet

Général

Profil

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

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

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

    
18
  public function access($account = NULL) {
19
    return file_entity_access('create', NULL, $account);
20
  }
21

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

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

    
31
    return $build;
32
  }
33

    
34
}