function payment_method_name_exists in Payment 7
2 string references to 'payment_method_name_exists'
- payment_form_payment_method in ./
payment.ui.inc - Implements form build callback: the payment method add/edit form.
- payment_form_process_line_item in ./
payment.ui.inc - Implements form process callback for a payment_line_item element.
File
- ./
payment.ui.inc, line 530 - The Payment user interface.
Code
function payment_method_name_exists($name) {
return !is_a(entity_load_single('payment_method', $name), 'PaymentMethodUnavailable');
}