You are here

class MediaBrowserUpload in D7 Media 7.3

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

Media browser plugin for showing the upload form.

Hierarchy

Expanded class hierarchy of MediaBrowserUpload

2 string references to 'MediaBrowserUpload'
hook_media_browser_plugin_info in ./media.api.php
Returns a list of plugins for the media browser.
media_media_browser_plugin_info in ./media.media.inc
Implements hook_media_browser_plugin_info().

File

includes/MediaBrowserUpload.inc, line 13
Definition of MediaBrowserUpload.

View source
class MediaBrowserUpload extends MediaBrowserPlugin {

  /**
   * Implements MediaBrowserPluginInterface::access().
   */
  public function access($account = NULL) {
    return file_entity_access('create', NULL, $account);
  }

  /**
   * Implements MediaBrowserPlugin::view().
   */
  public function view() {
    module_load_include('inc', 'file_entity', 'file_entity.pages');
    $build = array();
    $build['form'] = drupal_get_form('file_entity_add_upload', $this->params);
    return $build;
  }

}

Members