Hi, I have added logic hooks to the Calls module - on my windows machine they run just fine, but after migrating to a Linux box, the hooks are not fired at all!
Under windows XP (using xampp with php 5.3.0)
Under Linux - Debian With linux kernel 2.6.26-2 , PHP/5.2.9-4 with Suhosin-Patch
The logic hook file in custom\modules\Calls\logic_hooks.php:
Here is my actual hook code from custom\modules\Calls\calls_hooks.php:Code:<?php $hook_version = 1; $hook_array = Array(); $hook_array['before_save '] = Array(); $hook_array['before_save'][] = Array(1, 'custom', 'custom/modules/Calls/calls_hooks.php ','calls_hook', 'before_save'); // position, file, function $hook_array['after_save '] = Array(); $hook_array['after_save'][] = Array(1, 'custom', 'custom/modules/Calls/calls_hooks.php ','calls_hook', 'after_save'); ?>
Code:<?php if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); require_once('custom/include/ps40/SugarPS4.php'); class calls_hook { function before_save(&$focus, $event){ echo('before save hook<br />'); exit; } function after_save(&$focus, $event){ echo('after save hook<br />'); exit; } } ?>
How can i check where sugar checks for hooks and runs them?
Any ideas what this can be?


LinkBack URL
About LinkBacks



Reply With Quote



Bookmarks