[drupal-devel] image_url_filter.module - image URL into display inline image

Ross Kendall drupal at rosskendall.com
Thu Feb 17 23:22:29 UTC 2005


I just did a filter that changes an image URL like this:
www.website.com/myimage.jpg
to an html tag to display the image, like this:
<img src="http://www.website.com/myimage.jpg" alt="image" 
class="image-url-filter" />

It works for .gif, .png, .jpg and .jpeg file extensions.

Of course it is just a quick hack of the urlfilter.module

I saw this comment:
http://drupal.org/node/15877#comment-28600
which gave me the idea - which I thought was interesting - so I did it.

Not sure if this was done already, if so just ignore.

If anyone finds this of any interest, let me know

Cheers,
Ross.



More information about the drupal-devel mailing list