Preparing for blogs backup. Helper function. MDL-9089 ; merged from 19_STABLE
This commit is contained in:
@@ -680,4 +680,18 @@
|
||||
$filtertype.'&filterselect='.$filterselect.'&';
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all user ids who have used blogs in the site
|
||||
* Used in backup of site courses.
|
||||
*/
|
||||
function blog_get_participants() {
|
||||
|
||||
global $CFG;
|
||||
|
||||
return get_records_sql("SELECT userid as id
|
||||
FROM {$CFG->prefix}post
|
||||
WHERE module = 'blog'
|
||||
AND courseid = 0");
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user