Closed (fixed)
Project:
Image
Version:
5.x-1.x-dev
Component:
image_attach
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Aug 2007 at 08:28 UTC
Updated:
7 Dec 2007 at 15:39 UTC
Is there an option in this module to disable the hyperlink on the image? I'm using this module just to add a picture besides a node so the user is not supposed to click on the image.
Thanks in advance
Comments
Comment #1
drewish commentedyou can use a theme function to do this: theme_image_attach_body() and theme_image_attach_teaser() would be what you'd want to override.
Comment #2
sp1r commentedCould you maybe describe it for me how to do that, im not familiar yet with these functions
Comment #3
drewish commentedtake a look at http://drupal.org/node/55126
Comment #4
(not verified) commentedComment #5
ilyastayfun commentedfind the image_attach.module in modules/image/contrib and
in it:
and change the last line as:
$output .= (image_display($image, $img_size));Comment #6
christopherdoherty commentedCan you explain this further, please?
I added the function to my template.php file, renamed it to reflect the name of the theme I'm using. What specifically do I need to change here? Sorry for such a newb question, but I appreciate any help you can provide.
Thank you.
Comment #7
drewish commentedyou're removing the l() call (which creates a link) and its parameters. you can read about l() here: http://api.drupal.org/api/function/l/5
Comment #8
christopherdoherty commentedThank you so much.