diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-10-06 15:54:34 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-10-06 15:54:34 -0300 |
commit | 924fb6e2bdcdf46a21684d61d018cc3132dd4f04 (patch) | |
tree | b3f3360e7f4073b7ba0a62882e15de1ab6b6fa11 /muamba.module | |
parent | 6ac290695fc15a0c81260d172b1e9d7f54f1a715 (diff) | |
download | muamba-924fb6e2bdcdf46a21684d61d018cc3132dd4f04.tar.gz muamba-924fb6e2bdcdf46a21684d61d018cc3132dd4f04.tar.bz2 |
New business logic
Diffstat (limited to 'muamba.module')
-rw-r--r-- | muamba.module | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/muamba.module b/muamba.module index fd6fd74..f425d3e 100644 --- a/muamba.module +++ b/muamba.module @@ -10,11 +10,12 @@ */ define('MUAMBA_NODE_TYPE', 'muamba'); define('MUAMBA_REQUESTED', 0); -define('MUAMBA_ACCEPTED', 1); -define('MUAMBA_REJECTED', 2); -define('MUAMBA_RELEASED', 3); -define('MUAMBA_RETURNED', 4); -define('MUAMBA_CANCELLED', 5); +define('MUAMBA_ACCEPTED', 1); +define('MUAMBA_REJECTED', 2); +define('MUAMBA_CANCELLED', 3); +define('MUAMBA_RETURNED', 4); +define('MUAMBA_RECOVERED', 5); +define('MUAMBA_LOST', 6); // Load requirements. include_once('muamba.misc.inc'); @@ -68,10 +69,18 @@ function muamba_menu() { 'file' => 'muamba.business.inc', ); - $items['muamba/release'] = array( - 'title' => 'Release an item', - 'page callback' => 'muamba_release', - 'access arguments' => array('release item'), + $items['muamba/cancel'] = array( + 'title' => 'Cancel a request', + 'page callback' => 'muamba_cancel', + 'access arguments' => array('cancel item'), + 'type' => MENU_SUGGESTED_ITEM, + 'file' => 'muamba.business.inc', + ); + + $items['muamba/recover'] = array( + 'title' => 'Recover an item', + 'page callback' => 'muamba_recover', + 'access arguments' => array('recover item'), 'type' => MENU_SUGGESTED_ITEM, 'file' => 'muamba.business.inc', ); @@ -84,10 +93,10 @@ function muamba_menu() { 'file' => 'muamba.business.inc', ); - $items['muamba/cancel'] = array( - 'title' => 'Cancel a request', - 'page callback' => 'muamba_cancel', - 'access arguments' => array('cancel item'), + $items['muamba/lost'] = array( + 'title' => 'Report a lost item', + 'page callback' => 'muamba_lost', + 'access arguments' => array('lost item'), 'type' => MENU_SUGGESTED_ITEM, 'file' => 'muamba.business.inc', ); |