Table of Contents Previous Next

Sugar Developer Guide

Version 5.1


Chapter 4 Customizing Sugar : Business Logic Hooks : Options array

Options array
The second dimension is an array consisting of:
o
o
o
o
o
Thus a given class may have multiple methods to fire, each within a single upgrade-safe PHP file.
The method signature for version 1 hooks is:
function NAME(&$bean, $event, $arguments)
 
Where:
o
$bean - $this bean passed in by reference.
o
$event - The string for the current event (i.e. before_save)
o
$arguments - An array of arguments that are specific to the event.

Table of Contents Previous Next

Copyright 2004-2008 SugarCRM Inc.
Product License