I have a few different logic hooks that I’ve created on one module. It seems when I try to add a logic hook to a different module now, the new one will not work (just errors).
Logic Hook file (below) is at custom/extensions/modules/modulename/Ext/LogicHooks/Logic_Hooks.php
<?php
// Do not store anything in this file that is not part of the array or the hook
//version. This file will be automatically rebuilt in the future.
$hook_version = 1;
$hook_array = Array();
// position, file, function
$hook_array['after_save'] = Array();
$hook_array['after_save'][] = Array(
71,
'MoveDataFromClientToAuthServ',
'custom/modules/SVCS_Auth_Svcs/LH_MoveDataFromClient.php',
'MoveDataFromClient',
'movedatafromclient');
Even something as simple as the below - results in error
<?php
if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class MoveDataFromClient
{
function movedatafromclient($bean, $event, $arguments)
{
$GLOBALS['log']->debug('MovinClientBeans is in the function');
}
}
Any suggestions here? At this point, it seems I’m stuck with only being able to set up a logic hook on one specific module.