MediaBrowserUpload.inc

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

Definition of MediaBrowserUpload.

Classes

Namesort ascending Description
MediaBrowserUpload Media browser plugin for showing the upload form.

File

sites/all/modules/ulmus/media/includes/MediaBrowserUpload.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Definition of MediaBrowserUpload.
  5. */
  6. /**
  7. * Media browser plugin for showing the upload form.
  8. *
  9. * @deprecated
  10. */
  11. class MediaBrowserUpload extends MediaBrowserPlugin {
  12. /**
  13. * Implements MediaBrowserPluginInterface::access().
  14. */
  15. public function access($account = NULL) {
  16. return file_entity_access('create', NULL, $account);
  17. }
  18. /**
  19. * Implements MediaBrowserPlugin::view().
  20. */
  21. public function view() {
  22. module_load_include('inc', 'file_entity', 'file_entity.pages');
  23. $build = array();
  24. if ($this->params['multiselect'] && module_exists('plupload')) {
  25. $build['form'] = drupal_get_form('file_entity_add_upload_multiple', $this->params);
  26. $build['#attached']['js'][] = drupal_get_path('module', 'media') . '/js/plugins/media.upload_multiple.js';
  27. }
  28. else {
  29. $build['form'] = drupal_get_form('file_entity_add_upload', $this->params);
  30. }
  31. return $build;
  32. }
  33. }
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.