Skip to content

Instantly share code, notes, and snippets.

@SugarCRMExamples
Created March 20, 2014 02:12
Show Gist options
  • Save SugarCRMExamples/9655906 to your computer and use it in GitHub Desktop.
Save SugarCRMExamples/9655906 to your computer and use it in GitHub Desktop.
<?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