Created
March 20, 2014 02:12
-
-
Save SugarCRMExamples/9655906 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// If you are making this module loadable, put it in an extension file instead | |
// These are needed if you are hand-building a logic hook file | |
$hook_version = 1; | |
$hook_array = Array(); | |
// Setup a hook into the after_fetch_query hook | |
$hook_array['after_fetch_query'][] = array( | |
90, // Priorty, what order does this hook run in | |
'DemoProcessQuery', // What do we want to name this hook | |
'custom/modules/Contacts/DemoHook.php', // What filename contains the hook class | |
'DemoHook', // What is the demo hook class name | |
'processQuery', // What function to call in the class | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment