From dfb96366348a72498b45e3c324fddde100296f43 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 26 Sep 2011 16:58:06 -0300 Subject: Initial muamba page --- muamba.theme.inc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'muamba.theme.inc') 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 = '
'; + $output .= '

'. t('Transactions') .'

'; + + $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 .= '
'; + + return $output; +} -- cgit v1.2.3