Please go thru these
logic_hooks.php
Code:
<?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_ui_frame'] = Array();
$hook_array['after_ui_frame'][] = Array(1, 'test', 'custom/modules/TestModule/TestFile.php ','TestClass', 'TestFunc');
?>
TestFile.php
Code:
<?php
//prevents directly accessing this file from a web browser
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class TestClass{
function TestFunc(& $focus, $event){
echo "i am here. ha ha ha ha ";
}
}
?>

Originally Posted by
eescribano
Can you post the code of your logic_hook?
Please the code in custom/modules/<module_name>/logic_hooks.php and also the file that is required inside the logic_hook.php where you have your code to do your customizations.
That way we can help you better.
Bookmarks