The final link/img tag output should be themeable for maximum flexibility. The attached patch moves the img tag output to a theme function, and adds the required implementation of hook_theme.
The use case for this is if a given theme wants to use, for example, a text link instead of an image, it can do so without the developer having to hack on the addthis module.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | addthis.theme_.patch | 843 bytes | jhedstrom |
| addthis.theme_.patch | 881 bytes | jhedstrom |
Comments
Comment #1
jhedstromHere's a working patch. The patch above moved the theme function to addthis.theme.inc, but I figured I'd keep it simple and leave the function in the module file.
Comment #2
vesapalmu commentedI just committed this patch. Thanks!