From 6ac290695fc15a0c81260d172b1e9d7f54f1a715 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 6 Oct 2011 14:51:42 -0300 Subject: Fixing cancel action/status --- muamba.misc.inc | 2 ++ muamba.module | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/muamba.misc.inc b/muamba.misc.inc index 7ffa0e0..0b857bd 100644 --- a/muamba.misc.inc +++ b/muamba.misc.inc @@ -44,6 +44,7 @@ function muamba_statuses($code = NULL) { MUAMBA_REJECTED => 'rejected', MUAMBA_RELEASED => 'released', MUAMBA_RETURNED => 'returned', + MUAMBA_CANCELLED => 'cancelled', ); if ($code == NULL) { @@ -70,6 +71,7 @@ function muamba_actions($code = NULL) { MUAMBA_REJECTED => 'reject', MUAMBA_RELEASED => 'release', MUAMBA_RETURNED => 'return', + MUAMBA_CANCELLED => 'cancel', ); if ($code == NULL) { diff --git a/muamba.module b/muamba.module index fa72412..fd6fd74 100644 --- a/muamba.module +++ b/muamba.module @@ -14,7 +14,7 @@ define('MUAMBA_ACCEPTED', 1); define('MUAMBA_REJECTED', 2); define('MUAMBA_RELEASED', 3); define('MUAMBA_RETURNED', 4); -define('MUAMBA_CANCELLED', 4); +define('MUAMBA_CANCELLED', 5); // Load requirements. include_once('muamba.misc.inc'); -- cgit v1.2.3