Group description in Course view

Group description in Course view

by Jethro Kiers -
Number of replies: 0

hello all,

i want a piece of code in Course -> view.php, which defines a variable as the Group description (or id). Unfortunately, i cannot get the groupid from other files. Who can help me?

The current code is like this:

echo html_writer::start_tag('div', array('class'=>'usersGroup'));

$GROUPS = $DB->get_record('groups', array('id' =>$COURSE->groups));

echo $group->groups;

echo html_writer::end_tag('div');

 
Average of ratings: -