You are here

class RemoteStreamWrapperMediaBrowser in Remote Stream Wrapper 7

Media browser plugin for remote files.

Hierarchy

Expanded class hierarchy of RemoteStreamWrapperMediaBrowser

1 string reference to 'RemoteStreamWrapperMediaBrowser'
remote_stream_wrapper_media_browser_plugin_info in ./remote_stream_wrapper.module
Implements hook_media_browser_plugin_info().

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