MDL-32235 workshop cron support

On every invocation, the workshop will give its subplugins a chance to
to something useful. For now, we know that the scheduled allocator will
use it, no need to load other plugin types yet (until there will be a
real reason for it).
This commit is contained in:
David Mudrak
2012-04-13 04:49:46 +02:00
parent 9f8f380832
commit f6bc60cbe4
2 changed files with 10 additions and 13 deletions
+5 -7
View File
@@ -882,14 +882,12 @@ function workshop_print_recent_mod_activity($activity, $courseid, $detail, $modn
}
/**
* Function to be run periodically according to the moodle cron
* This function searches for things that need to be done, such
* as sending out mail, toggling flags etc ...
* Regular jobs to execute via cron
*
* @return boolean
* @todo Finish documenting this function
**/
function workshop_cron () {
* @return boolean true on success, false otherwise
*/
function workshop_cron() {
cron_execute_plugin_type('workshopallocation', 'workshop allocation methods');
return true;
}