Hi, there,
I’m trying to do something relatively simple but complicated.
I would like to present a popup after saving a call.
I have registered a new logic_hooks in ‘/custom/modules/Calls/logic_hooks.php’
$hook_array['after_save'][] = Array(
1,
'openMeetingAfterCall',
'custom/modules/Calls/openMeetingAfterCall.php',
'EliAfterSaveCallLogicHook',
'openMeeting');
In the file ‘openMeetingAfterCall.php’ I have inserted this simple code to carry out an alert javascript
<?php
class EliAfterSaveCallLogicHook
{
function openMeeting($bean, $event, $arguments)
{
//var_dump($event);
echo "<script type= \"text/javascript\">alert('Hello!')</script>"
;
}
}
?>
When I save a call, nothing happens.