? .svn
? 789886.patch
? uc_signup_account_notification.patch
? images/.svn
? views/.svn
Index: uc_signup.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/uc_signup/uc_signup.module,v
retrieving revision 1.57
diff -u -p -r1.57 uc_signup.module
--- uc_signup.module	4 May 2010 22:43:56 -0000	1.57
+++ uc_signup.module	5 May 2010 18:01:15 -0000
@@ -654,7 +654,14 @@ 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;
+              
+              if (variable_get('uc_signup_account_notify', 0) == 1) {
+                $form_state['values']['notify'] = TRUE;
+              }
+              else {
+                $form_state['values']['notify'] = FALSE;
+              }
+              
               $profile_form = array_values(module_invoke('profile', 'user', 'register', array(), (object)array()));
               $profile_form = $profile_form[0];
               foreach ($profile_form as $key => $value) {
@@ -742,10 +749,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', 0),
   );
   return system_settings_form($form);
 }
