MDL-11992: adding course tagging patch, by John Beedell. This feature is not

active by default at this time. Related help files are not included in this
commit, as they are being revised (see issue 15385) and will be sent in soon.
This commit is contained in:
scyrma
2008-06-30 09:04:07 +00:00
parent 0f59046fa2
commit 38fb819028
18 changed files with 1740 additions and 70 deletions
+7 -3
View File
@@ -154,8 +154,8 @@ define('PARAM_FILE', 0x0010);
define('PARAM_TAG', 0x0011);
/**
* PARAM_TAGLIST - list of tags separated by commas (interests, blogs, etc.)
*/
* PARAM_TAGLIST - list of tags separated by commas (interests, blogs, etc.)
*/
define('PARAM_TAGLIST', 0x0012);
/**
@@ -2817,7 +2817,7 @@ function update_user_record($username, $authplugin) {
}
/**
* will truncate userinfo as it comes from auth_get_userinfo (from external auth)
* will truncate userinfo as it comes from auth_get_userinfo (from external auth)
* which may have large fields
*/
function truncate_userinfo($info) {
@@ -3543,6 +3543,10 @@ function remove_course_contents($courseid, $showfeedback=true) {
remove_course_grades($courseid, $showfeedback);
remove_grade_letters($context, $showfeedback);
/// Delete course tags
require_once($CFG->dirroot.'/tag/coursetagslib.php');
coursetag_delete_course_tags($course->id, $showfeedback);
return $result;
}