function uc_payment_condition_info in Ubercart 5
File
- payment/uc_payment/uc_payment_workflow.inc, line 101
- This file contains the Workflow-ng hooks and functions necessary to make the
order related entity, conditions, events, and actions work.
Code
function uc_payment_condition_info() {
$order_arg = array(
'#entity' => 'order',
'#label' => t('Order'),
);
$conditions['uc_payment_condition_balance'] = array(
'#label' => t('Check the order balance'),
'#arguments' => array(
'order' => $order_arg,
),
'#module' => t('Payment'),
);
$conditions['uc_payment_condition_method'] = array(
'#label' => t('Check the order payment method'),
'#arguments' => array(
'order' => $order_arg,
),
'#module' => t('Payment'),
);
return $conditions;
}