mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Changes to allow much better control over what "teachers" are called
in a course. Firstly, the course settings page now allows the teachers to specify the word they want to use in place of "teachers" and "students" as well as "teacher" and "student". Secondly, a new teacher admin tool allows any teacher to modify the order and displayed role of teachers in that course. This affects the display on the course listings, the participants page and so on.
This commit is contained in:
parent
774ab66002
commit
b4d7002e66
11 changed files with 65 additions and 21 deletions
12
version.php
12
version.php
|
@ -18,7 +18,7 @@
|
|||
// If there's something it cannot do itself, it
|
||||
// will tell you what you need to do.
|
||||
|
||||
$version = 2002090501; // The current version is a date (YYYYMMDDXX) where
|
||||
$version = 2002090800; // The current version is a date (YYYYMMDDXX) where
|
||||
// XX is a number that increments during the day
|
||||
|
||||
$release = "1.0.4 beta"; // For humans only, not used for the upgrade process
|
||||
|
@ -62,6 +62,16 @@ function upgrade_moodle($oldversion=0) {
|
|||
execute_sql(" ALTER TABLE `course_sections` CHANGE `summary` `summary` TEXT NOT NULL ");
|
||||
}
|
||||
|
||||
if ($oldversion < 2002090701) {
|
||||
execute_sql(" ALTER TABLE `user_teachers` CHANGE `authority` `authority` TINYINT( 10 ) DEFAULT '3' NOT NULL ");
|
||||
execute_sql(" ALTER TABLE `user_teachers` ADD `role` VARCHAR(40) NOT NULL AFTER `authority` ");
|
||||
}
|
||||
|
||||
if ($oldversion < 2002090800) {
|
||||
execute_sql(" ALTER TABLE `course` ADD `teachers` VARCHAR( 100 ) DEFAULT 'Teachers' NOT NULL AFTER `teacher` ");
|
||||
execute_sql(" ALTER TABLE `course` ADD `students` VARCHAR( 100 ) DEFAULT 'Students' NOT NULL AFTER `student` ");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue