You are here

MediaBrowserUpload.inc in D7 Media 7.3

Definition of MediaBrowserUpload.

File

includes/MediaBrowserUpload.inc
View source
<?php

/**
 * @file
 * Definition of MediaBrowserUpload.
 */

/**
 * Media browser plugin for showing the upload form.
 *
 * @deprecated
 */
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;
  }

}

Classes

Namesort descending Description
MediaBrowserUpload Media browser plugin for showing the upload form.