From 3379d34ee51a393f8299244dad8abf5e90c2a7ac Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 26 Jun 2018 09:42:12 +1000 Subject: [PATCH] more testing --- booking.helper.inc | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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 ""; + } } /**