function payment_commerce_rules_condition_info in Payment for Drupal Commerce 7
Same name and namespace in other branches
- 7.2 payment_commerce.rules.inc \payment_commerce_rules_condition_info()
Implements hook_rules_condition_info().
File
- ./
payment_commerce.rules.inc, line 11 - Rules integration.
Code
function payment_commerce_rules_condition_info() {
$conditions['payment_commerce_payment_method_validate'] = array(
'label' => t('Payment method validates an order'),
'parameter' => array(
'commerce_order' => array(
'type' => 'commerce_order',
'label' => t('Order'),
'description' => t('The order for which the payment should be validated by a payment method.'),
),
),
'group' => t('Payment for Drupal Commerce'),
);
return $conditions;
}