Closed (won't fix)
Project:
Media Gallery
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2010 at 16:43 UTC
Updated:
10 Jan 2011 at 15:45 UTC
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
Comment #1
bisonbleu commentedHere 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).
Comment #2
drupa11y commentedClose this issue and will check out what to do on the current cvs-dev-version.