function payment_status_info in Payment 7
Gets a specific payment status.
Parameters
string $status: A status' system name.
boolean $unknown: Whether to return info for PAYMENT_STATUS_UNKNOWN if the requested status does not exist.
Return value
mixed A PaymentStatusInfo object or FALSE if the status does not exist.
3 calls to payment_status_info()
- PaymentViewsHandlerFieldPaymentStatusTitle::render in views/
PaymentViewsHandlerFieldPaymentStatusTitle.inc - Implements views_handler_field::render().
- payment_status_items in ./
payment.ui.inc - Return a render array containing a Payment's status items.
- _payment_page_status_level in ./
payment.ui.inc - Helper function for payment_page_status() to build table rows.
File
- ./
payment.module, line 720 - Hook implementations and shared functions.
Code
function payment_status_info($status, $unknown = FALSE) {
$statuses_info = payment_statuses_info();
return isset($statuses_info[$status]) ? $statuses_info[$status] : ($unknown ? $statuses_info[PAYMENT_STATUS_UNKNOWN] : FALSE);
}