You are here

function payment_statuses_info in Payment 7

Gets payment statuses.

Return value

array An array with PaymentStatusInfo objects for all available statuses.

See also

hook_payment_status_info()

3 calls to payment_statuses_info()
PaymentStatusInfo::children in ./payment.classes.inc
Get this payment status's children.
payment_status_hierarchy in ./payment.ui.inc
Returns a hierarchical representation of payment statuses.
payment_status_info in ./payment.module
Gets a specific payment status.

File

./payment.module, line 694
Hook implementations and shared functions.

Code

function payment_statuses_info() {
  $statuses_info =& drupal_static(__FUNCTION__);
  if (!$statuses_info) {
    $statuses_info = array();
    foreach (module_invoke_all('payment_status_info') as $status_info) {
      $statuses_info[$status_info->status] = $status_info;
    }
    drupal_alter('payment_status_info', $statuses_info);
  }
  return $statuses_info;
}