? add_roster_email.patch
? nt_remove.diff
? vt_install_1.patch
Index: volunteer_timeslots.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/volunteer_timeslots/volunteer_timeslots.install,v
retrieving revision 1.4.2.1
diff -u -p -r1.4.2.1 volunteer_timeslots.install
--- volunteer_timeslots.install	13 Jul 2007 01:12:03 -0000	1.4.2.1
+++ volunteer_timeslots.install	13 Jul 2007 01:31:47 -0000
@@ -45,4 +45,5 @@ function volunteer_timeslots_uninstall()
   variable_del('volunteer_timeslots_remind_time');
   variable_del('volunteer_timeslots_author_manages');
   variable_del('volunteer_timeslots_organizer_updates');
+  variable_del('volunteer_timeslots_roster_email');
 } 
Index: volunteer_timeslots.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/volunteer_timeslots/volunteer_timeslots.module,v
retrieving revision 1.19
diff -u -p -r1.19 volunteer_timeslots.module
--- volunteer_timeslots.module	17 Feb 2007 02:55:23 -0000	1.19
+++ volunteer_timeslots.module	13 Jul 2007 01:31:47 -0000
@@ -69,6 +69,12 @@ function volunteer_timeslots_settings() 
     '#options' => $hours,      
     '#description' => t('This sets the maximum possible time before an event that the reminder e-mail will be sent. The actual time the e-mail is set depnds upon when and how often cron.php is executed on your system. Choose %s to disable automatic e-mail reminders', array('%s' => t('never'))),
   );
+  $form['volunteer_timeslots_roster_email'] = array(
+    '#type' => 'checkbox',
+    '#title' => t("Include each user's email address in the event volunteer roster"),
+    '#default_value' => variable_get('volunteer_timeslots_roster_email', FALSE),
+  );
+  
   if (module_exists('profile')) { 
     $result = db_query('SELECT * FROM {profile_fields} WHERE visibility != %d ORDER BY category, weight', PROFILE_HIDDEN);
     while ($field = db_fetch_object($result)) {
@@ -326,13 +332,17 @@ function _timeslots_roster_form($node) {
   $form['nid'] = array('#type' => 'value', '#value' => $node->nid);
   
   $header = array("Username");
+  $fields = array();
   if ($profile = module_exists('profile')) {
     $fields = variable_get('volunteer_timeslots_profile_fields', array());  
   }
+  if (variable_get('volunteer_timeslots_roster_email', FALSE)) {
+    $fields += array('mail');
+  }
   foreach ($node->timeslot_data[0]['all_volunteers'] as $uid) {
     if ($account = user_load(array('uid' => $uid))) {
-      $form['info'][$uid]['username'] = array('#value' => $account->name);
-      if ($profile) {
+      $form['info'][$uid]['username'] = array('#value' => theme('username', $account));
+      if ($fields) {
         foreach ($fields as $profile_field) {
           $form['info'][$uid][$profile_field] = array('#value' => $account->$profile_field);
         }
@@ -351,6 +361,9 @@ function _timeslots_roster_form($node) {
       $header[] = $pf->title; 
     }
   }
+  if (variable_get('volunteer_timeslots_roster_email', FALSE)) {
+      $header[] = t('E-mail address'); 
+  }
   $header[] = t('Notes');
 
   $form['header'] = array(
