Added tokens for studygroups and rooms

This commit is contained in:
2014-06-03 13:41:19 +10:00
parent 802d38c63f
commit 9aef5c23ed
3 changed files with 85 additions and 2 deletions

View File

@@ -1706,7 +1706,10 @@ function booking_view($node, $view_mode) {
//display study session data if enabled
if (variable_get('booking_enable_studygroups', 0) == 1)
{
$studygroup_heading = t("<h2>Study Groups</h2><p>!link</p>",
array('!link' => l(t('Edit Groups'), t('admin/booking/!id/edit-studygroup', array('!id' => $node->nid)))
));
//look up the titles of the study groups
$studygroups_query = db_query("SELECT * FROM {booking_studygroup_list} WHERE booking_eventid = :eid",
array(':eid' => $event->eid));
@@ -1725,7 +1728,7 @@ function booking_view($node, $view_mode) {
}
$node->content['group-heading'] = array(
'#markup' => "<h2>Study Groups</h2>",
'#markup' => $studygroup_heading,
'#weight' => 6,
);