class RemoteStreamWrapperMediaBrowser in Remote Stream Wrapper 7
Media browser plugin for remote files.
Hierarchy
- class \RemoteStreamWrapperMediaBrowser extends \MediaBrowserPlugin
Expanded class hierarchy of RemoteStreamWrapperMediaBrowser
1 string reference to 'RemoteStreamWrapperMediaBrowser'
File
- ./
RemoteStreamWrapperMediaBrowser.inc, line 17 - Definition of RemoteStreamWrapperMediaBrowser.
View source
class RemoteStreamWrapperMediaBrowser extends MediaBrowserPlugin {
/**
* Implements MediaBrowserPluginInterface::access().
*/
public function access($account = NULL) {
return user_access('administer files', $account) || user_access('add media from remote urls', $account);
}
/**
* Implements MediaBrowserPlugin::view().
*/
public function view() {
$build['form'] = drupal_get_form('remote_stream_wrapper_file_add_form', $this->params);
return $build;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RemoteStreamWrapperMediaBrowser:: |
public | function | Implements MediaBrowserPluginInterface::access(). | |
RemoteStreamWrapperMediaBrowser:: |
public | function | Implements MediaBrowserPlugin::view(). |