From c33d76cd586158deed9dbd97d94aa1f309b82c0e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 15 Nov 2011 13:08:46 -0200 Subject: Optionally reject all other pending requests --- muamba.business.inc | 4 +++- muamba.module | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/muamba.business.inc b/muamba.business.inc index 5d853a7..36c87ce 100644 --- a/muamba.business.inc +++ b/muamba.business.inc @@ -210,7 +210,9 @@ function muamba_accept($mid) { $reply = privatemsg_reply($transaction['thread_id'], $message); // Optionally reject all other pending requests - //muamba_reject_all($node); + if (variable_get('muamba_reject_all_on_accept', FALSE) == TRUE) { + muamba_reject_all($node); + } return t('Accepted item request.'); } diff --git a/muamba.module b/muamba.module index b03dea8..f951210 100644 --- a/muamba.module +++ b/muamba.module @@ -38,6 +38,16 @@ function muamba_permission() { * Implements hook_menu() */ function muamba_menu() { + $items['admin/config/system/muamba'] = array( + 'title' => 'Muamba Configuration', + 'description' => 'Configure options for Muamba System', + 'page callback' => 'drupal_get_form', + 'page arguments' => array('muamba_config_form'), + 'access arguments' => array('administer muamba'), + 'file' => 'muamba.admin.inc', + 'type' => MENU_NORMAL_ITEM, + ); + $items['muamba'] = array( 'title' => 'My items', 'page callback' => 'muamba', -- cgit v1.2.3