diff --git a/mod/workshop/lib.php b/mod/workshop/lib.php index 5c44c504569..557a149fd8e 100644 --- a/mod/workshop/lib.php +++ b/mod/workshop/lib.php @@ -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; } diff --git a/mod/workshop/version.php b/mod/workshop/version.php index 28505d53b0a..18762e8fb48 100644 --- a/mod/workshop/version.php +++ b/mod/workshop/version.php @@ -17,15 +17,14 @@ /** * Defines the version of workshop * - * @package mod - * @subpackage workshop + * @package mod_workshop * @copyright 2009 David Mudrak * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); -$module->version = 2012030700; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2012030100.04; // Requires this Moodle version -$module->component = 'mod_workshop'; // Full name of the plugin (used for diagnostics) -$module->cron = 0; +$module->version = 2012032900; // the current module version (YYYYMMDDXX) +$module->requires = 2012032300; // requires this Moodle version +$module->component = 'mod_workshop'; // full name of the plugin (used for diagnostics) +$module->cron = 60; // give as a chance every minute