Hi,
Been a while since I played with sugar and just getting back into it with an install of 6.2.4 pro on ubuntu server 10.04.
All is working well except I cant seem to get a simple logic hook to fire. Anyone se any problems with the following assuming file, class and function names are all correct?
This is in the custom/modules/Leads directory of my install. I simply added the line between the custom comments.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['before_save'] = Array();
$hook_array['before_save'][] = Array(1, 'Leads push feed', 'modules/Leads/SugarFeeds/LeadFeed.php','LeadFeed', 'pushFeed');
//custom logic hooks start - before_save
$hook_array['before_save'][] = Array(2, 'Add Lead Account Code', 'modules/Leads/addcodehook.php','add_lead_ac_code_cs', 'add_lead_ac_code_fn');
//custom logic hooks end - before_save
$hook_array['after_ui_frame'] = Array();
$hook_array['after_ui_frame'][] = Array(1, 'Leads InsideView frame', 'modules/Connectors/connectors/sources/ext/rest/insideview/InsideViewLogicHook.php','InsideViewLogicHook', 'showFrame');
?>
Help - this is driving my little brain crazy!
LX Dog


LinkBack URL
About LinkBacks



Reply With Quote

Almost available at skype or gtalk at ashdwi1.
Bookmarks