hey ,
i want to keep my whmcs and epgroupware application in sync. so i wrote a plugin for whmcs that add to the contact table in the egroupware db and if anybody edits a client in whmcs it also searchs in the egrp table and makes the changes there.
i know this is not the best way to go about it, but im just trying to first get it all to work then ill sit down and slowly integrate using the egrp api to do all the adding of the contacts.
my question is:
i dont want to write anything into the core file, is there some sort event driven function that i can hook up my own functions to execute when client info gets saved or added in egroup?
in whmcs i can acomplish this by adding a function in a folder and putting the hook to a specific action
add_hook ( “ClientEdit”, 1, “myeditClients” );
im not going to make any changes in the core file and if there is no event hook or anything like that im guessing the only other option i have is just like every other sync methode to run a cron every 5 mins and see if modifed dates have changed and make the changes as nessasary.
any insight would be great, im slowly learning how make my own apps, but in the mean time i would like to get something up and running quick.