mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
add_creator no longer in use
This commit is contained in:
parent
a7a54c3ba1
commit
6eccd8f099
1 changed files with 0 additions and 18 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue