function media_browser_build_media_item in D7 Media 7
Same name and namespace in other branches
- 7.4 includes/media.browser.inc \media_browser_build_media_item()
- 7.2 includes/media.browser.inc \media_browser_build_media_item()
- 7.3 includes/media.browser.inc \media_browser_build_media_item()
Adds properties to the passed in file that are needed by the media browser JS code.
2 calls to media_browser_build_media_item()
- media_browser in includes/
media.browser.inc - @file Media Browser page callback
- media_browser_list in includes/
media.browser.inc - AJAX Callback function to return a list of media files
File
- includes/
media.browser.inc, line 386 - Media Browser page callback
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);
}