function _payment_method_data in Ubercart 5
Same name and namespace in other branches
- 6.2 payment/uc_payment/uc_payment.module \_payment_method_data()
Return data from a payment method by method ID and the array key.
8 calls to _payment_method_data()
- uc_checkout_pane_payment in payment/
uc_payment/ uc_payment_checkout_pane.inc - uc_order_pane_payment in payment/
uc_payment/ uc_payment_order_pane.inc - Handle the Payment order pane.
- uc_payment_enter in payment/
uc_payment/ uc_payment.module - Enter a payment for an order.
- uc_payment_get_details in payment/
uc_payment/ uc_payment.module - uc_payment_order in payment/
uc_payment/ uc_payment.module - Implementation of hook_order().
File
- payment/
uc_payment/ uc_payment.module, line 1089
Code
function _payment_method_data($method_id, $key) {
$methods = _payment_method_list();
foreach ($methods as $method) {
if ($method['id'] == $method_id) {
return $method[$key];
}
}
}