1/ oh, this in modolelib.php is not good:
/// Delete course tags
require_once($CFG->dirroot.'/blocks/tags/coursetagslib.php');
coursetag_delete_course_tags($course->id);
if ($showfeedback) {
notify("$strdeleted course tags");
}
code in moodlelib.php must not depend on blocks, I think that coursetagslib.php could be somewhere in course/lib.php instead.
2/ the html code in block is not xthml strict - incorrect single quotes, disabled attribute
3/ hardcoded lang strings: "Submit" in form, js warnings
4/ hardcoded siteid: courseid = optional_param('courseid', 1, PARAM_INT);
5/ no assignments to $COURSE, it must be done by require_login()!
6/ not compatible with multilang - use format_string on $course->fullname before printing it
7/ images should use pixpath (only works for standard images though) to allow theme tweaks
8/ it must work without js - does it?
9/ coding style: {} after if required
In fact I do not like the access control+coding style in core tags code at all, I complained but the SoC student did not listen. The main tag related code should be fixed/refactored/improved/rewritten first IMO.
I do like the idea of course tags! Please keep working on that.
I am considering committing the course tagging feature to head in January, so I am attaching a patch created today for the adventurous to try out.
Any comments would be gratefully received.
Please also see the forum discussion http://moodle.org/mod/forum/discuss.php?d=78985, and http://moodle.org/mod/forum/discuss.php?d=79067.
PS. The patch also covers the very minor
MDL-12565bug.MDL-12565bug.