]> git.mjollnir.org Git - moodle.git/commitdiff
add_creator no longer in use
authortoyomoyo <toyomoyo>
Mon, 18 Sep 2006 10:18:26 +0000 (10:18 +0000)
committertoyomoyo <toyomoyo>
Mon, 18 Sep 2006 10:18:26 +0000 (10:18 +0000)
lib/deprecatedlib.php

index e1a43f802c7825a66553c5dc69f7fa231ed48c72..6910cd3e70e20da6fedf0e2842c5b6390d6043a6 100644 (file)
@@ -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
  *