function uc_global_quote_ca_predicate in Ubercart Global Quote 7
Same name and namespace in other branches
- 6 uc_global_quote.module \uc_global_quote_ca_predicate()
Implementation of hook_ca_predicate().
File
- ./
uc_global_quote.module, line 55 - Shipping quote module that defines rates based on weight and shipping regions
Code
function uc_global_quote_ca_predicate() {
$enabled = variable_get('uc_quote_enabled', array());
$predicates = array(
'uc_global_quote_get_quote' => array(
'#title' => t('Shipping quote via global quote'),
'#trigger' => 'get_quote_from_global_quote',
'#class' => 'uc_global_quote',
'#status' => $enabled['global_quote'],
'#actions' => array(
array(
'#name' => 'uc_quote_action_get_quote',
'#title' => t('Fetch a global quote shipping quote'),
'#argument_map' => array(
'order' => 'order',
'method' => 'method',
),
),
),
),
);
return $predicates;
}