]> gitweb.fluxo.info Git - drupal/muamba.git/commitdiff
Fixing cancel action/status
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 6 Oct 2011 17:51:42 +0000 (14:51 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 6 Oct 2011 17:51:42 +0000 (14:51 -0300)
muamba.misc.inc
muamba.module

index 7ffa0e030e6a4d17678580b6b571005dbea6624c..0b857bd963df196a14c9315728f508e51cc93c53 100644 (file)
@@ -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) {
index fa72412f32572e7791ab4156674863df053370e2..fd6fd7444ef336a532393f2aa4054abc2279e895 100644 (file)
@@ -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');