From bbd96ea440878ff0560498d6ad10fb685a2db7bb Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Wed, 22 Jun 2016 18:14:07 +1000 Subject: [PATCH] change reading group csv output to use team colours for heading --- booking.studygroups_report.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/booking.studygroups_report.inc b/booking.studygroups_report.inc index de8ce23..68f9444 100644 --- a/booking.studygroups_report.inc +++ b/booking.studygroups_report.inc @@ -68,7 +68,12 @@ function booking_studygroups_csv_report($group_id) { foreach ($header_array as $column) { $maximums[] = count($data[$column]); //make the column headings a bit more user friendly - $column_headings[] = "Session " . $column; + if ($group->booking_is_readinggroup == 'Y') { + $column_headings[] = _booking_readinggroup_colour_lookup($column); + } + else { + $column_headings[] = "Session " . $column; + } } //add the column headings to the CSV