Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*** custom/modules/Contacts/logic_hooks.php ***/
- <?php
- $hook_version = 1;
- $hook_array = Array();
- $hook_array['before_save'] = Array();
- $hook_array['before_save'][] = array(1,'Sync Contact to LSP','custom/modules/Contacts/contacts_save.php','Contacts_SyncToLSP','sync_to_lsp',);
- /*** custom/modules/Contacts/contacts_save.php ***/
- <?php
- require('custom/cust_Development/Classes/cust_CallAPI.php');
- class Contacts_SyncToLSP {
- function sync_to_lsp( $bean, $event, $arguments ) {
- $GLOBALS['log']->fatal('RUNNING CONTACTS BEFORE_SAVE'); // THIS never shows up in the log
- call_lpapi( 'contacts', $bean );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement