Added tokens for studygroups and rooms
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user