function commerce_payment_transaction_status_options_list in Commerce Core 7
Returns an options list of payment transaction statuses.
1 string reference to 'commerce_payment_transaction_status_options_list'
- commerce_payment_entity_property_info in modules/
payment/ commerce_payment.info.inc - Implements hook_entity_property_info().
File
- modules/
payment/ commerce_payment.module, line 813 - Defines the payment system and checkout integration.
Code
function commerce_payment_transaction_status_options_list() {
// Build an array of payment transaction status options.
$options = array();
foreach (commerce_payment_transaction_statuses() as $payment_transaction_status) {
$options[$payment_transaction_status['status']] = $payment_transaction_status['title'];
}
return $options;
}