Hello,
From the article:[quote:43cljf9f](...) to use this feature you need to register a new processing callback it in your module install() method:
Utils_RecordBrowserCommon::register_processing_callback($recordset_name, $callback);[/quote:43cljf9f]
Which means that in the install() method of your module (that should be in <your module>Install.php) you need to add something like:
Utils_RecordBrowserCommon::register_processing_callback('phonecall', array('<your module>Common', 'process_phonecall'));
In the phonecalls module, in the installation routine you can find this line:
Utils_RecordBrowserCommon::register_processing_callback('phonecall', array('CRM_PhoneCallCommon', 'submit_phonecall'));
That's another example of registering processing callbacks.
Now, the template for the callback should be: (in the Common part of your module)
public static function process_phonecall ($values, $mode) {
//... code here
return $values;
}
Now all you need to do is to add check if $mode=='added' and you can perform the action you want.
Hope this helps,
Arek