You are here

function remote_stream_wrapper_media_browser_plugin_view in Remote Stream Wrapper 7

Implements hook_media_browser_plugin_view().

File

./remote_stream_wrapper.module, line 229
Provides a remote stream wrapper and file field integration.

Code

function remote_stream_wrapper_media_browser_plugin_view($plugin_name, $params) {
  if ($plugin_name == 'remote_file') {
    if (remote_stream_wrapper_media_browser_plugin_access()) {
      $params += array(
        'types' => array(),
      );
      $form = drupal_get_form('remote_stream_wrapper_file_add_form', $params);
      return array(
        '#title' => t('Remote URL'),
        'form' => array(
          $form,
        ),
      );
    }
  }
}