MediaBrowserUpload.inc in D7 Media 7.3
Same filename and directory in other branches
Definition of MediaBrowserUpload.
File
includes/MediaBrowserUpload.incView 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
Name | Description |
---|---|
MediaBrowserUpload | Media browser plugin for showing the upload form. |