function _payment_page_status_level in Payment 7
Helper function for payment_page_status() to build table rows.
Parameters
array $hierarchy: A payment status hierarchy as returned by payment_status_hierarchy().
integer $depth: The depth of $hierarchy's top-level items as seen from the original hierarchy's root (this function is recursive), starting with 0.
Return value
array
1 call to _payment_page_status_level()
- payment_page_status in ./
payment.ui.inc - Display a payment status overview.
File
- ./
payment.ui.inc, line 484 - The Payment user interface.
Code
function _payment_page_status_level(array $hierarchy, $depth) {
$rows = array();
foreach ($hierarchy as $status => $children) {
$status_info = payment_status_info($status);
$rows[] = array(
theme('indentation', array(
'size' => $depth,
)) . $status_info->title,
$status_info->description,
);
$rows = array_merge($rows, _payment_page_status_level($children, $depth + 1));
}
return $rows;
}