Hi all,
I have written a handy module which will export any menu into an XML structure for consumption into various resources... for me, its a flash nav movie that loads the xml, though I suppose the XML file could feed just about anything.
To keep the XML structure update to date, I have implemented the cron hook which simply hashes the selected menu and compares it to a another hash value, if the values differ, the menu has some how been augmented, and so the XML structure/file is rebuilt.
This cron approach works, though I keep thinking that there is a more elegant solution in the form of a menu update/insert/delete hook. I am not sure if there is a system wide hook to grab all changes to the system's menus.
Lastly, ( because I am lazy ) I want to be rebuilding the menus AFTER insertions/edits/deletions, I need to hook these 3 actions after processing, not prior.
Any ideas?
Thanks,
John