aboutsummaryrefslogtreecommitdiff
path: root/muamba.theme.inc
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-10-06 17:41:54 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-10-06 17:41:54 -0300
commit4654eb2a446f64c66233b7bc38cc2a9b7bf151cc (patch)
treec68a1aa06acbd968a9f3d88b6e2d1a05cd771cbb /muamba.theme.inc
parent470cfd7fe8ea97b476eb4ca4fb430eae2ffae669 (diff)
downloadmuamba-4654eb2a446f64c66233b7bc38cc2a9b7bf151cc.tar.gz
muamba-4654eb2a446f64c66233b7bc38cc2a9b7bf151cc.tar.bz2
Coding muamba_recover() and misc fixes
Diffstat (limited to 'muamba.theme.inc')
-rw-r--r--muamba.theme.inc30
1 files changed, 30 insertions, 0 deletions
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');
+}