? .svn
? 625180.patch
? 789886.patch
? 835880
? 835880.patch
? 839640-a.patch
? 839640-b.patch
? 839640.patch
? uc_signup_account_notification.patch
? views/.svn
Index: uc_signup.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_signup/uc_signup.module,v
retrieving revision 1.58
diff -u -p -r1.58 uc_signup.module
--- uc_signup.module	4 Jul 2010 03:38:44 -0000	1.58
+++ uc_signup.module	4 Jul 2010 04:01:09 -0000
@@ -655,7 +655,7 @@ function uc_signup_order($op, &$arg1, $a
               $form_state['values']['name'] = uc_store_email_to_username($mail);
               $form_state['values']['op'] = t('Create new account');
               $form_state['values']['pass'] =  user_password(8);
-              $form_state['values']['notify'] = FALSE;
+              $form_state['values']['notify'] = (bool)variable_get('uc_signup_account_notify', 1);
               $profile_form = array_values(module_invoke('profile', 'user', 'register', array(), (object)array()));
               $profile_form = $profile_form[0];
               foreach ($profile_form as $key => $value) {
@@ -780,10 +780,17 @@ function uc_signup_settings_form() {
     '#default_value' => variable_get('uc_signup_add_cart_text', ''),
   );
   $form['uc_signup_signups_closed_text'] = array(
-  '#type' => 'textfield',
-  '#title' => t('Signups closed text'),
-  '#description' => t("The signup/add to cart button will be disabled and display this text when signups are closed for a node. This text will be displayed when capacity is reached for an event."),
-  '#default_value' => variable_get('uc_signup_signups_closed_text', t("Signups are closed for this event.")),
+    '#type' => 'textfield',
+    '#title' => t('Signups closed text'),
+    '#description' => t("The signup/add to cart button will be disabled and display this text when signups are closed for a node. This text will be displayed when capacity is reached for an event."),
+    '#default_value' => variable_get('uc_signup_signups_closed_text', t("Signups are closed for this event.")),
+  );
+  
+  $form['uc_signup_account_notify'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Send account notification emails when accounts are created'),
+    '#description' => t("When enabled account activation emails will be sent when uc_signup automatically creates accounts."),
+    '#default_value' => variable_get('uc_signup_account_notify', 1),
   );
   return system_settings_form($form);
 }
