Hi,
I'm that far that a creater is added automatically to a meeting or call after it is saved. But is there a possibiliy to add the creater automatically after opening the create new call page? So that you see this user in the timeline below?
This is what i did so far:
I created the file LogicHookAutoInvite.php and put it in in de main directory custom/
PHP Code:
<?php
class LogicHookAutoInvite
{
public function inviteCurrentUser($bean, $event, $arguments)
{
global $current_user;
$bean->set_accept_status($current_user, 'accept');
}
}
?>
Then there was no file logic_hooks.php in custom/modules/Calls so I created it. It has the following code in it:
PHP Code:
<?php
$hook_version = 1;
$hook_array = Array();
$hook_array['after_save'] = Array();
$hook_array['after_save'][] = Array(1, 'Auto invite user', 'custom/LogicHookAutoInvite.php','LogicHookAutoInvite','inviteCurrentUser');
?>
Bookmarks