Skip to content

Instantly share code, notes, and snippets.

@jmertic
Forked from rick0ff/logic_hook.php
Created December 4, 2012 15:49
Show Gist options
  • Save jmertic/4205362 to your computer and use it in GitHub Desktop.
Save jmertic/4205362 to your computer and use it in GitHub Desktop.
path: custom/modules/Agreements/
<?php
$hook_version = 1;
$hook_array = Array();
// position, file, function
$hook_array['process_record'] = Array();
$hook_array['after_ui_frame'] = Array();
$hook_array['process_record'][] = Array(1, 'Sum_Each', 'custom/modules/Agreements/sum.php','SumAgreementsHook', 'sumTotalFromEachRow');
$hook_array['after_ui_frame'][] = Array(1, 'Display_Sum', 'custom/modules/Agreements/sum.php','SumAgreementsHook', 'displaySumTotal');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment