aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--muamba.business.inc4
-rw-r--r--muamba.module10
2 files changed, 13 insertions, 1 deletions
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',