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

This commit is contained in:
stronk7
2008-04-13 01:17:30 +00:00
parent 21c302418f
commit 240075cd7f
+14
View File
@@ -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");
}
?>