Archive for the ‘ Open Source ’ Category
There's not much information out there about Sugar CRM, so here's a quick example on creating a custom logic hook. This example uses a custom helper function called 'sendSugarPHPMail' which can be found here http://www.redinkdesign.net/sugar_email_wrapper. In this example, we're going to email someone when a Case's status is set to 'Closed'. To make this upgrade friendly we're going to create two files in 'custom/modules/Cases'. First file: logic_hooks.php - Loaded automatically by Sugar. Second: case_closed.php - Our custom code. The contents of logic_hooks.php are: [ READ MORE ]