Every time a new node is published within a single content type, I wish to extract (not remove) all the images out from that node's body and save the URL(s) of the images in the database. I will then use the URLs to make a slideshow of the images on a separate node.
I have three questions:
- Which hook runs right before a node is published?
- What's the best way of saving those URLs in the database?
- Which Drupal function do I use to retrieve those URLs from the database?