From: toyomoyo Date: Mon, 18 Sep 2006 10:18:26 +0000 (+0000) Subject: add_creator no longer in use X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6eccd8f099dc172209b99f6246a31203f8990f25;p=moodle.git add_creator no longer in use --- diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index e1a43f802c..6910cd3e70 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -466,24 +466,6 @@ function remove_teacher($userid, $courseid=0) { return $return; } -/** - * Add a creator to the site - * - * @param int $userid The id of the user that is being tested against. - * @return bool - */ -function add_creator($userid) { - - if (!record_exists('user_admins', 'userid', $userid)) { - if (record_exists('user', 'id', $userid)) { - $creator->userid = $userid; - return insert_record('user_coursecreators', $creator); - } - return false; - } - return true; -} - /** * Remove a creator from a site *