Commit 240075cd authored by stronk7's avatar stronk7
Browse files

Preparing for blogs backup. Helper function. MDL-9089 ; merged from 19_STABLE

parent 21c30241
......@@ -680,4 +680,18 @@
* 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");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment