From 5e044ecbd0e1914d93ebde1514b4567e8a17b1de Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 6 Oct 2011 16:50:35 -0300 Subject: Use muamba_current_transaction() at muamba_node_view() --- muamba.business.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'muamba.business.inc') diff --git a/muamba.business.inc b/muamba.business.inc index 195409f..cd9dc5d 100644 --- a/muamba.business.inc +++ b/muamba.business.inc @@ -5,6 +5,18 @@ * Business logic for Muamba. */ +/** + * Define which status belongs to an ongoing transaction. + */ +function muamba_ongoing() { + return array( + MUAMBA_REQUESTED, + MUAMBA_ACCEPTED, + MUAMBA_RETURNED, + MUAMBA_LOST, + ); +} + /** * Determine possible actions for a transaction. * -- cgit v1.2.3