class MediaBrowserBulkUpload in D7 Media 7.4
Same name and namespace in other branches
- 7.2 modules/media_bulk_upload/includes/MediaBrowserBulkUpload.inc \MediaBrowserBulkUpload
- 7.3 modules/media_bulk_upload/includes/MediaBrowserBulkUpload.inc \MediaBrowserBulkUpload
Media browser plugin for showing the bulk upload form.
Hierarchy
- class \MediaBrowserPlugin implements MediaBrowserPluginInterface
- class \MediaBrowserUpload
- class \MediaBrowserBulkUpload
- class \MediaBrowserUpload
Expanded class hierarchy of MediaBrowserBulkUpload
1 string reference to 'MediaBrowserBulkUpload'
- media_bulk_upload_media_browser_plugin_info_alter in modules/
media_bulk_upload/ media_bulk_upload.module - Implements hook_media_browser_plugin_info_alter().
File
- modules/
media_bulk_upload/ includes/ MediaBrowserBulkUpload.inc, line 13 - Definition of MediaBrowserBulkUpload.
View source
class MediaBrowserBulkUpload extends MediaBrowserUpload {
/**
* Overrides MediaBrowserPlugin::view().
*/
public function view() {
module_load_include('inc', 'file_entity', 'file_entity.pages');
$build = array();
if ($this->params['multiselect']) {
$build['form'] = drupal_get_form('file_entity_add_upload_multiple', $this->params);
}
else {
$build['form'] = drupal_get_form('file_entity_add_upload', $this->params);
}
return $build;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MediaBrowserBulkUpload:: |
public | function |
Overrides MediaBrowserPlugin::view(). Overrides MediaBrowserUpload:: |
|
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:: |