Tuesday, April 13, 2010

Sugar custom logic hook


Hooks for modules
Define hooks in custom/modules/<module_name>/logic_hooks.php
Event type
before_save
after_save
before_restore
after_restore
process_record                        ------   when loads a row of data into instance of a bean
before_retrieve                         ------   fetches a single row of data given the primary key
after_retrieve

Generic Hooks
Generic hooks should be defined in custom/modules/logic_hooks.php
Event Type
after_ui_frame
after_ui_footer

No comments:

Google+