The current implementation of inline_auto_add does not allow to provide inline images as a variable to the theme. Attached patch implements that option along with the options to output inline images above or below the node's content. I've also completely reworked _inline_auto_add(), since it used to process both the teaser and body of a node regardless of the actual view (The current view is passed as 4th argument to hook_nodeapi()).

This feature is inspired by node_images module.

CommentFileSizeAuthor
inline.auto-add.patch5.73 KBsun

Comments

sun’s picture

Why not create a CCK Inline auto_add field that gets automatically filled with those images? That would open the door for many other use cases.