How can I get the complete filepath and imagename.suffix to the image-file shown on the detailpage to set it in "$link_vars['link_path'] = 'something';"?

/**
* Displays a media item (entity) as a thumbnail on a Gallery collection page
*/
function theme_media_gallery_collection_thumbnail($variables) {
$element = $variables['element'];

// Get the rendered file without annoying DIV wrappers.
$element['file']['#theme'] = 'media_gallery_file_field_inline';
$image = drupal_render($element['file']);

$link_vars = array();
$link_vars['image'] = $image;
$link_vars['link_path'] = 'something';

Comments

bisonbleu’s picture

Here is the error one gets because of this 'something'.

Notice: Undefined variable: meta_link dans theme_media_gallery_meta() (ligne 472 dans /home/renaudj/public_html/d7one/sites/all/modules/media_gallery/media_gallery.theme.inc).

drupa11y’s picture

Status: Active » Closed (won't fix)

Close this issue and will check out what to do on the current cvs-dev-version.