class MediaBrowserUpload

  1. cis7 sites/all/modules/ulmus/media/includes/MediaBrowserUpload.inc MediaBrowserUpload
  2. cle7 sites/all/modules/ulmus/media/includes/MediaBrowserUpload.inc MediaBrowserUpload
  3. elmsmedia7 sites/all/modules/ulmus/media/includes/MediaBrowserUpload.inc MediaBrowserUpload
  4. icor7 sites/all/modules/ulmus/media/includes/MediaBrowserUpload.inc MediaBrowserUpload
  5. meedjum_blog7 sites/all/modules/ulmus/media/includes/MediaBrowserUpload.inc MediaBrowserUpload
  6. mooc7 sites/all/modules/ulmus/media/includes/MediaBrowserUpload.inc MediaBrowserUpload

Media browser plugin for showing the upload form.

Hierarchy

Expanded class hierarchy of MediaBrowserUpload

Members

Contains filters are case sensitive

File

sites/all/modules/ulmus/media/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();
    if ($this->params['multiselect'] && module_exists('plupload')) {
      $build['form'] = drupal_get_form('file_entity_add_upload_multiple', $this->params);
      $build['#attached']['js'][] = drupal_get_path('module', 'media') . '/js/plugins/media.upload_multiple.js';
    }
    else {
      $build['form'] = drupal_get_form('file_entity_add_upload', $this->params);
    }

    return $build;
  }
}
2 string references to 'MediaBrowserUpload'
hook_media_browser_plugin_info in sites/all/modules/ulmus/media/media.api.php
Returns a list of plugins for the media browser.
media_media_browser_plugin_info in sites/all/modules/ulmus/media/media.media.inc
Implements hook_media_browser_plugin_info().