in

custom/modules/Users/logic_hooks.php

I have the following:

PHP Code:
$hook_array['after_login'][] = Array(1'call login javascript''custom/modules/ExternalHooks/callJavascript.php','myClass''phpFunctionToCall'); 
and in the callJavascript.php I can have

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