diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2011-11-15 13:08:46 -0200 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2011-11-15 13:08:46 -0200 | 
| commit | c33d76cd586158deed9dbd97d94aa1f309b82c0e (patch) | |
| tree | 9f62b4dbf4cfc7159d4865c6289d6e12ed8f382e | |
| parent | 2295fe29c395bc6b6306b2f11f187d26253ec54e (diff) | |
| download | muamba-c33d76cd586158deed9dbd97d94aa1f309b82c0e.tar.gz muamba-c33d76cd586158deed9dbd97d94aa1f309b82c0e.tar.bz2  | |
Optionally reject all other pending requests
| -rw-r--r-- | muamba.business.inc | 4 | ||||
| -rw-r--r-- | muamba.module | 10 | 
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',  | 
