function _payment_page_status_rows in Payment 7
Helper function to build the rows for the table in payment_page_status().
Parameters
array $statuses: The statuses for which to build table rows.
array $children: Keys are payment statuses, values are the statuses that are the keys's children.
array $rows: The table rows to which to add new ones.
integer $depth:
See also
File
- ./
payment.ui.inc, line 511 - The Payment user interface.
Code
function _payment_page_status_rows(array $statuses, array $children, array &$rows, $depth = 0) {
foreach ($statuses as $status) {
$rows[] = array(
theme('payment_page_status_row', array(
'status' => $status,
'depth' => $depth,
)),
);
if (isset($children[$status])) {
_payment_page_status_rows($children[$status], $children, $rows, $depth + 1);
}
}
}