diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-09-26 16:58:06 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-09-26 16:58:06 -0300 |
commit | dfb96366348a72498b45e3c324fddde100296f43 (patch) | |
tree | a3b9a5a58ffdf29c354168844b8001283515df2b /muamba.theme.inc | |
parent | 22b2b4c6217577cb35c1913c3c2c560979e64236 (diff) | |
download | muamba-dfb96366348a72498b45e3c324fddde100296f43.tar.gz muamba-dfb96366348a72498b45e3c324fddde100296f43.tar.bz2 |
Initial muamba page
Diffstat (limited to 'muamba.theme.inc')
-rw-r--r-- | muamba.theme.inc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/muamba.theme.inc b/muamba.theme.inc index 056632f..481941f 100644 --- a/muamba.theme.inc +++ b/muamba.theme.inc @@ -4,3 +4,22 @@ * @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; +} |