You are here

function payment_rules_condition_payment_uses_payment_method_type in Payment 7

Implements Rules condition callback: check whether a payment uses one of the selected payment methods types.

This function is deprecated. Use payment_rules_condition_payment_method_type_comparison() instead.

Parameters

Payment $payment: The payment to check the condition for.

array $payment_method_controller_class_names: An array with class names of payment method controllers.

Return value

boolean

See also

payment_rules_condition_payment_method_type_comparison()

File

./payment.rules.inc, line 519
Rules integration.

Code

function payment_rules_condition_payment_uses_payment_method_type(Payment $payment, array $payment_method_controller_class_names) {
  return $payment->method && payment_rules_condition_payment_method_type_comparison($payment->method, $payment_method_controller_class_names);
}