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));