Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: mod/termreview/tutor.

mod/termreview/tutor

From MoodleDocs
Revision as of 10:15, 11 December 2008 by Mike Worth (talk | contribs) (New page: Tutor groups are identified by a function in locallib.php. By default, it checks for the system at my college- a '/' somewhere in the shortname designates a tutor group. This can easily be...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Tutor groups are identified by a function in locallib.php. By default, it checks for the system at my college- a '/' somewhere in the shortname designates a tutor group. This can easily be changed- it is right at the top of locallib.php. If you just want to designate your tutorgroups by something ither than a '/' in the shortname simply change the / in

if(strpbrk($course->shortname,'/')){

to whatever you like (can be as long or short as you like). shortname can be changed to fullname or idnumber (or any other property, but these 3 are the most likely)

If you only want the class teacher or personal tutor functionality, replace

if(strpbrk($course->shortname,'/')){

with

if(true){

for everything to show as a tutor group, or

if(false){

for everything to show as a normal class.

You can also overwrite the whole function with any php function that returns true for tutor groups and false for everything else.