From 4654eb2a446f64c66233b7bc38cc2a9b7bf151cc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 6 Oct 2011 17:41:54 -0300 Subject: Coding muamba_recover() and misc fixes --- muamba.theme.inc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'muamba.theme.inc') diff --git a/muamba.theme.inc b/muamba.theme.inc index ac8cdc7..4e201f7 100644 --- a/muamba.theme.inc +++ b/muamba.theme.inc @@ -34,6 +34,8 @@ function theme_muamba_transactions($variables) { } foreach($transactions as $transaction) { + $actions = array(); + foreach (muamba_actions_available($type, $transaction['status']) as $action) { $callback = muamba_actions($action); $actions[] = l(t($callback), 'muamba/'. $callback .'/'. $transaction['mid']); @@ -104,3 +106,31 @@ function theme_muamba_accept_message($transaction = NULL) { function theme_muamba_reject_message($transaction = NULL) { return t('I reject your item request'); } + +/** + * Theme callback. + */ +function theme_muamba_cancel_message($transaction = NULL) { + return t('I cancel my item request'); +} + +/** + * Theme callback. + */ +function theme_muamba_return_message($transaction = NULL) { + return t('I return your item'); +} + +/** + * Theme callback. + */ +function theme_muamba_recovered_message($transaction = NULL) { + return t('I recovered my item'); +} + +/** + * Theme callback. + */ +function theme_muamba_lost_message($transaction = NULL) { + return t('I declare that my item is lost'); +} -- cgit v1.2.3