in
custom/modules/Users/logic_hooks.php
I have the following:
and in the callJavascript.php I can havePHP Code:$hook_array['after_login'][] = Array(1, 'call login javascript', 'custom/modules/ExternalHooks/callJavascript.php','myClass', 'phpFunctionToCall');
PHP Code:function phpFunctionToCall(&$bean, $event, $arguments)
{
//die("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx $bean->assigned_user_id");
}
I want to call a javascript with the user_id as param - the reason is that I am testing embedding sugar in an adobe-air app that will talk to sugar through javascript


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks