I have a view in Drupal 7 that renders a nodequeue. Now I want each node to be rendered with a title, text summary and an image if an image is available inside that nodes body field.
I'm thinking of creating a module that uses regular expression like:
/<img.+src="([^"]+)/i
...to find the fist image in the body field for that node and present it as a view field and call that field something like "Content: First image".
I would also like to have the image style options ect. as available for the already existing image fields.
How should I create a module like that, which hooks should I use to make that field available for views?