function payment_rules_condition_payment_uses_payment_method in Payment 7
Implements Rules condition callback: check whether a payment uses one of the selected payment methods.
This function is deprecated. Use payment_rules_condition_payment_method_comparison() instead.
Parameters
Payment $payment: The payment to check the condition for.
array $pmids: An array with payment method IDs.
Return value
boolean
See also
payment_rules_condition_payment_method_comparison()
File
- ./
payment.rules.inc, line 471 - Rules integration.
Code
function payment_rules_condition_payment_uses_payment_method(Payment $payment, array $pmids) {
return $payment->method && payment_rules_condition_payment_method_comparison($payment->method, $pmids);
}