class MediaBrowserUpload in D7 Media 7.4
Same name and namespace in other branches
- 7.2 includes/MediaBrowserUpload.inc \MediaBrowserUpload
- 7.3 includes/MediaBrowserUpload.inc \MediaBrowserUpload
Media browser plugin for showing the upload form.
Hierarchy
- class \MediaBrowserPlugin implements MediaBrowserPluginInterface
- class \MediaBrowserUpload
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MediaBrowserPlugin:: |
protected | property | The plugin metadata array from hook_media_browser_plugin_info(). | |
MediaBrowserPlugin:: |
protected | property | The parameters for current media browser from media_get_browser_params(). | |
MediaBrowserPlugin:: |
public | function |
Implements MediaBrowserPluginInterface::__construct(). Overrides MediaBrowserPluginInterface:: |
1 |
MediaBrowserUpload:: |
public | function |
Implements MediaBrowserPluginInterface::access(). Overrides MediaBrowserPlugin:: |
|
MediaBrowserUpload:: |
public | function |
Implements MediaBrowserPlugin::view(). Overrides MediaBrowserPlugin:: |
1 |