Freelinking patch - make freelinks to images show image preview instead of title

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
BartK's picture

I was a bit disappointed with the fact that Freelinks didn't support embedding images, so I created a patch to make it do that. If you have the Image module installed and you freelink to an image node, you see the image preview on the page instead of the node title for the image. I submitted an issue (including the patch to implement it) here:

http://drupal.org/node/363406

Notes:
* This option must be explicitly turned on in the freelinks configuration page.
* You need the Image module for this to work, although not having it won't cause freelinks to break.
* This code hasn't been tested very extensively, but it appears to work.
* The patch is for 6.x-1.7. I'd include the whole file here, but I don't know if there are any licensing issues, so you'll have to download 1.7 and patch it on your own for now.

Wiki

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: