'idnumber' => $data->cohortidnumber,
'description' => $data->cohortdescription,
'visible' => $data->cohortvisible,
- 'name' => $data->cohortname
+ 'name' => $data->cohortname,
+ 'theme' => $data->cohorttheme
);
$context = context_helper::instance_by_id($data->cohortcontextid);
protected function get_sql_and_params($count = false) {
$fields = 'uca.id, uca.cohortid, uca.userid, uca.roleid, ';
$fields .= 'c.name as cohortname, c.idnumber as cohortidnumber, c.contextid as cohortcontextid, ';
- $fields .= 'c.visible as cohortvisible, c.description as cohortdescription, ';
+ $fields .= 'c.visible as cohortvisible, c.description as cohortdescription, c.theme as cohorttheme, ';
// Add extra user fields that we need for the graded user.
$extrafields = get_extra_user_fields($this->context);
* idnumber cohort idnumber field
* description cohort description field
* visible cohort visible field
+ * theme cohort theme field
Example context (json):
{ "id": "1",
"name": "Cohort 1",
"visible": true,
"idnumber": "014",
- "description": "Some users"
+ "description": "Some users",
+ "theme": "clean"
}
}}
{{> tool_lp/form-cohort-selector-suggestion }}