function uc_taxes_ca_trigger in Ubercart 6.2
Implements hook_ca_trigger().
Registers an event for each tax rule in {uc_taxes}.
File
- uc_taxes/
uc_taxes.ca.inc, line 29 - This file contains the Conditional Action hooks and functions necessary to make the tax related entity, conditions, events, and actions work.
Code
function uc_taxes_ca_trigger() {
$triggers = array();
$triggers['calculate_taxes'] = array(
'#title' => t('Calculate taxes'),
'#category' => t('Taxes'),
'#arguments' => array(
'order' => array(
'#entity' => 'uc_order',
'#title' => t('Order'),
),
'tax' => array(
'#entity' => 'tax',
'#title' => t('Tax rule'),
),
'account' => array(
'#entity' => 'user',
'#title' => t('User account'),
),
),
);
return $triggers;
}