- Fields added to format_legacy as default course format options;
- Upgrade script copies fields values from table course to course_format_options;
- Fields removed from table course;
- Fields removed from edit course form;
- Since front-page course has a 'numsections' setting, format_site defines it as it's option;
- Removed accessing those fields in core code unless we know that format supports them and in this
case instead of $course = $DB->get_record('course'); we use:
$course = course_get_format($courseorid)->get_course(); This way all format-specific options
are added to the $course object
Originally, the strings were prepared by Helen with _help suffix. But in
IMS Enterprise, there is no place for help icons. So the strings are
used as descriptions at the setting page and therefore they have _desc
suffix now.
AMOS BEGIN
MOV [usecapitafix_help,enrol_imsenterprise],[usecapitafix_desc,enrol_imsenterprise]
HLP enrol/imsenterprise/capita.html,[usecapitafix_desc,enrol_imsenterprise]
MOV [createnewcategories_help,enrol_imsenterprise],[createnewcategories_desc,enrol_imsenterprise]
HLP enrol/imsenterprise/categorisation.html,[createnewcategories_desc,enrol_imsenterprise]
MOV [createnewcourses_help,enrol_imsenterprise],[createnewcourses_desc,enrol_imsenterprise]
HLP enrol/imsenterprise/createnewcourses.html,[createnewcourses_desc,enrol_imsenterprise]
MOV [createnewusers_help,enrol_imsenterprise],[createnewusers_desc,enrol_imsenterprise]
HLP enrol/imsenterprise/createnewusers.html,[createnewusers_desc,enrol_imsenterprise]
MOV [deleteusers_help,enrol_imsenterprise],[deleteusers_desc,enrol_imsenterprise]
HLP enrol/imsenterprise/deleteusers.html,[deleteusers_desc,enrol_imsenterprise]
MOV [sourceddidfallback_help,enrol_imsenterprise],[sourceddidfallback_desc,enrol_imsenterprise]
HLP enrol/imsenterprise/sourceddidfallback.html,[sourceddidfallback_desc,enrol_imsenterprise]
MOV [restricttarget_help,enrol_imsenterprise],[restricttarget_desc,enrol_imsenterprise]
HLP enrol/imsenterprise/target.html,[restricttarget_desc,enrol_imsenterprise]
MOV [truncatecoursecodes_help,enrol_imsenterprise],[truncatecoursecodes_desc,enrol_imsenterprise]
HLP enrol/imsenterprise/truncatecoursecodes.html,[truncatecoursecodes_desc,enrol_imsenterprise]
MOV [allowunenrol_help,enrol_imsenterprise],[allowunenrol_desc,enrol_imsenterprise]
HLP enrol/imsenterprise/unenrol.html,[allowunenrol_desc,enrol_imsenterprise]
AMOS END
By the way, the current style of creating course_sections is ugly. We
should probably have something like
make_sure_that_at_least_default_section_exists($courseid, $sectionid=null)
and not to insert it into database at many places as we do now.
From now on, all English strings use the new syntax. They are not
eval()'ed any more and the only valid placeholders are {$a} and
{$a->foobar}. No extra quotes escaping, dollar sign escaping and putting
double percent signs.
The modified files were exported from AMOS database repository in the
new syntax and were re-ordered by stringid. Standard GNU/GPL and PHPdoc
blocks are added. Where there was no copyright note so far, I added the
default one with Martin Dougiamas as the copyright holder.
Live long and prosper.