I've created my own search engine with a custom module and some XML. I would like to add content to the XML file with a custom function in my module.
The content that needs to be added will be coming from some content types. Is there a way to trigger a function after a content type is saved (node saved)?
I know the Rules module can do this, but I need to do it from my custom module (i.e. I need to write a function to achieve this).
Is this even possible?