[Vtigercrm-developers] Register Event Handler in Manifest
Conrado Maggi
comaggi at gmail.com
Fri Feb 6 17:16:46 GMT 2015
Yes. You need add the function on the module class.
Remember to remove the event before module deactivation. Also on the class
Rgrds
El 06/02/2015 15:06, "Alan Lord" <alanslists at gmail.com> escribió:
> On 06/02/15 13:45, Alan Lord wrote:
>
>> I'm trying to register an event handler using the manifest file but it
>> doesn't seem to be working, i.e. it isn't getting added to the database
>> table vtiger_eventhandlers...
>>
>
> Ahhh.
>
> From vtlib/Vtiger/PackageUpdate.php:
>
> /**
>> * Update Event of the module
>> * @access private
>> */
>> function update_Event($modulenode, $moduleInstance, $eventnode) {
>> //Vtiger_Event::register($moduleInstance, $eventnode->eventname,
>> $eventnode->classname, $eventnode->filename);
>> // TODO Handle event property update
>> }
>>
>
> :-(
>
> So I need to write a vtlib handler function in my class file and trigger
> it on "postupdate" I guess?
>
> Al
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150206/927d45dd/attachment.html>
More information about the vtigercrm-developers
mailing list