diff --git a/booking.helper.inc b/booking.helper.inc index c6d7f4b..350ab3c 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -1638,11 +1638,26 @@ function _booking_readinggroup_email_listing($node) { $member_query = db_query("SELECT * FROM {booking_person_view} WHERE $sessionid = :sid ", array(':sid' => $node->$sessionid))->fetchAllAssoc('nid'); watchdog('booking_debug', "
Other people in reading group @id \n@info", - array('@id' => $node->$sessionid, '@info' => print_r($member_query, true))); + array('@id' => $node->$sessionid, '@info' => print_r($member_query, true))); - //theme('table', array('header' => $state_header, 'rows' => $state_rows)); + foreach ($member_query as $member) { + $rows[] = array( + $member->booking_firstname, + $member->booking_lastname, + $member->booking_mobile, + ); + } } } + + if(variable_get('booking_enable_html_mail', 0) == 1) { + $table = theme('table', array('header' => $header, 'rows' => $rows)); + watchdog('booking_debug', "
Reading group table\n@info", array('@info' => print_r($table, true))); + return drupal_render($table); + } + else { + return ""; + } } /**