function payment_method_options in Payment 7
Return payment methods for use in form elements.
Return value
array Keys are payment method IDs. Values are payment method specific titles.
1 call to payment_method_options()
1 string reference to 'payment_method_options'
- payment_rules_condition_info in ./
payment.rules.inc - Implements hook_rules_condition_info().
File
- ./
payment.ui.inc, line 1151 - The Payment user interface.
Code
function payment_method_options() {
$options = array();
foreach (entity_load('payment_method') as $payment_method) {
$options[$payment_method->pmid] = check_plain($payment_method->title_specific);
}
natcasesort($options);
return $options;
}