blob: 481941ff03463da6c2bc9a9e01c333314b525628 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
/**
* @file
* Misc theme functions.
*/
function theme_muamba_transactions($variables) {
$transactions = $variables['transactions'];
$output = '<div class="muamba-transactions">';
$output .= '<h2>'. t('Transactions') .'</h2>';
$rows = array();
foreach ($transactions as $entry) {
// Sanitize the data before handing it off to the theme layer.
$rows[] = array_map('check_plain', (array) $entry);
}
// Make a table for them.
$header = array(t('Id'), t('uid'), t('Owner'), t('Thread'));
$output .= theme('table', array('header' => $header, 'rows' => $rows));
$output .= '</div>';
return $output;
}
|