function uc_fedex_configuration in FedEx Shipping 5
Implementation of hook_configuration().
Connect FedEx quote action and event.
Return value
Workflow_ng configuration array
File
- ./
uc_fedex.module, line 71 - FedEx Web Services Rate / Available Services Quote
Code
function uc_fedex_configuration() {
$enabled = variable_get('uc_quote_enabled', array(
'fedex' => TRUE,
));
$configurations = array(
'uc_fedex_get_quote' => array(
'#label' => t('Shipping quote from FedEx'),
'#event' => 'get_quote_from_fedex',
'#module' => 'uc_fedex',
'#active' => $enabled['fedex'],
),
);
$action = workflow_ng_use_action('uc_quote_action_get_quote', array(
'#label' => t('Fetch a shipping quote'),
));
$configurations['uc_fedex_get_quote'] = workflow_ng_configure($configurations['uc_fedex_get_quote'], $action);
return $configurations;
}