AnsweredAssumed Answered

SugarCRM logic hook Migrating from CE to Professional issue

Question asked by Nikhil Vijayakumar on Jun 19, 2017
Latest reply on Jun 20, 2017 by Nikhil Vijayakumar

Hi 

 

I was using SugarCRM 6.8 CE and my logic hooks was working as expected . However when i switched to SugarPro-Full-7.8.2.0 . The logic hooks is not working at all.I am following the http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.8/Architecture/Logic_Hooks/ My code is given below


SugarPro-Full-7.8.2.0/custom/modules/Accounts/logic_hooks.php


<?php

$hook_array['after_ui_frame'] = Array();
$hook_array['after_ui_frame'][] = Array(2, 'After Relationship Add','custom/Extension/modules/Accounts/Ext/LogicHooks/account_hooks.php','AccountHooks','generateOWQ');

?>

 

SugarPro-Full-7.8.2.0/custom/modules/Accounts/Ext/LogicHooks/account_hooks.php

 

<?php

if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

class AccountHooks{

function generateOWQ($event, $arguments){
//my logic
}
}

?>

 

Thanks,

Nikhil

Outcomes