function media_browser_build_media_item

cis7 media.browser.inc media_browser_build_media_item($file)
cle7 media.browser.inc media_browser_build_media_item($file)
elmsmedia7 media.browser.inc media_browser_build_media_item($file)
icor7 media.browser.inc media_browser_build_media_item($file)
meedjum_blog7 media.browser.inc media_browser_build_media_item($file)
mooc7 media.browser.inc media_browser_build_media_item($file)

Adds properties to the file.

Additional properties on this file are needed by the media browser JS code.

2 calls to media_browser_build_media_item()
media_browser in sites/all/modules/ulmus/media/includes/media.browser.inc
Media browser page callback.
template_preprocess_media_views_view_media_browser in sites/all/modules/ulmus/media/media.views.inc
Display the view as a media browser.

File

sites/all/modules/ulmus/media/includes/media.browser.inc, line 363
Summon plugins and render the media browser.

Code

function media_browser_build_media_item($file) {
  $preview = media_get_thumbnail_preview($file);
  $file->preview = drupal_render($preview);
  $file->url = file_create_url($file->uri);
}
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.