Is there a way to override the default theming built into the image_attach module without rewriting the module itself? I'm using the PHPTemplate engine for my theme, and have tried all of the template names I can think of; none of them has worked. If someone has an example of a template that would get picked up by the theme function, I'd be grateful if you could post it here.

Otherwise, if you can't use theme templates, what's the next best way to do it?

Thanks in advance.

Comments

heine’s picture

The function to override is theme_image_attach_body($node).

See template.php: Overriding other theme functions for information on how to override this function.

Note: you can use the current theme_image_attach_body function as a starting point for your own phptemplate_image_attach_body function.

Note: if you want to override the default teaser theming, override the function theme_image_attach_teaser.
--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.

roMancer’s picture

Things seem to have changed for drupal 6.
How do I theme image_attach stuff in drupal 6?