function bynder_generate_result_current in Bynder 7
Show search result.
File
- includes/
bynder.browser.inc, line 768 - Manages the Bynder media browser functionality
Code
function bynder_generate_result_current($media_item) {
return l('
<div class="image-holder">
<img src="' . $media_item['thumbnails']['thul'] . '"/>
</div>
<span class="media_object_type_' . $media_item['type'] . '">' . t($media_item['name']) . '</span>', 'admin/content/media/add/bynder/', array(
'attributes' => array(
'class' => 'bynder-image',
'rel' => $media_item['id'],
'data-id' => $media_item['id'],
'data-idHash' => $media_item['idHash'],
),
'html' => true,
'query' => array(
'id' => $media_item['id'],
'idHash' => $media_item['idHash'],
),
));
}