I need to code some specific coding for a client. I need to do it together/after adding a hotspot location into DB.
Basically I need to know where the store function is in the code (I cannot find it) . I am talking about adding/editing a hotspot location from the admin.
I will be using the array of the spot info (lat, lng, address, etc...)
Thanks Daniel, It seem exactly what I need. This email plugin though, I added firePHP into it, and when I save new location or edit and save existing, this plugin does not run at all. Plugin is activated (just in case). Is it supposed to run on on front end submissions? If so, I still need a way to accomplish what I need from the backend save.
Make a die('something') in the onAfterSaveHotspots funciton and see if after posting you get a white page. with 'something" written on the screen. If you do, then the plugin is being called.
The plugin works for sure, as I'm getting e-mails on new hotspots.
I did similar thing with firePHP, but just to be sure, just put a die() in the beginning of email.php, and on the start of onAfterHotspotSave function. Saved edited hotspots twice - no problem, the die() does not run.
Update: Just tried on another website with new hotspots installation - same thing the email plugin does not run at all.