function payment_method_controller_options in Payment 7
Return payment method controllers for use in form elements.
Return value
array Keys are payment method controller class names. Values are controller titles.
2 calls to payment_method_controller_options()
- PaymentViewsHandlerFilterPaymentMethodControllerTitle::get_value_options in views/
PaymentViewsHandlerFilterPaymentMethodControllerTitle.inc - Implements views_handler_filter_in_operator::get_value_options().
- payment_rules_options_list_payment_uses_payment_method_type in ./
payment.rules.inc - Implements Rules options list callback for payment_rules_condition_payment_uses_payment_method_type.
1 string reference to 'payment_method_controller_options'
- payment_rules_condition_info in ./
payment.rules.inc - Implements hook_rules_condition_info().
File
- ./
payment.ui.inc, line 1168 - The Payment user interface.
Code
function payment_method_controller_options() {
$options = array();
foreach (payment_method_controller_load_multiple() as $payment_method_controller) {
$options[$payment_method_controller->name] = $payment_method_controller->title;
}
natcasesort($options);
return $options;
}