You are here

function payment_status_options in Payment 7

Return payment statuses for use in form elements.

Return value

array Keys are payment statuses. Values are status titles, prefixed with dashes to show hierarchy.

3 calls to payment_status_options()
paymentmethodbasic_payment_method_configuration_form_elements in modules/paymentmethodbasic/paymentmethodbasic.module
Form build callback: implements PaymentMethodController::payment_method_configuration_form_elements_callback.
PaymentViewsHandlerFilterPaymentStatusItemStatus::get_value_options in views/PaymentViewsHandlerFilterPaymentStatusItemStatus.inc
Implements views_handler_filter_in_operator::get_value_options().
payment_form_embedded in ./payment.ui.inc
Builds common elements for a payment add/edit form.
2 string references to 'payment_status_options'
payment_rules_action_info in ./payment.rules.inc
Implements hook_rules_action_info().
payment_rules_condition_info in ./payment.rules.inc
Implements hook_rules_condition_info().

File

./payment.ui.inc, line 1118
The Payment user interface.

Code

function payment_status_options() {
  return _payment_status_options_level(payment_status_hierarchy(), 0);
}