From 633d5a07af9d0d18567deb7a696c8d3a7d259337 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Tue, 29 Nov 2011 21:38:14 +0100 Subject: [PATCH] MDL-30007 standardise module version files --- mod/assignment/version.php | 35 +++++++++++++++++++++++++++-------- mod/chat/version.php | 35 ++++++++++++++++++++++++++++------- mod/choice/version.php | 35 +++++++++++++++++++++++++++-------- mod/data/version.php | 9 +++++---- mod/feedback/version.php | 20 +++++++++++--------- mod/folder/version.php | 9 ++++----- mod/forum/version.php | 9 ++++----- mod/glossary/version.php | 7 ++++--- mod/imscp/version.php | 9 ++++----- mod/label/version.php | 12 +++++------- mod/lesson/version.php | 17 +++++++---------- mod/lti/version.php | 6 +++--- mod/page/version.php | 11 +++++------ mod/quiz/version.php | 7 ++++--- mod/resource/version.php | 9 ++++----- mod/scorm/version.php | 9 ++++++--- mod/survey/version.php | 35 +++++++++++++++++++++++++++-------- mod/url/version.php | 11 +++++------ mod/wiki/version.php | 14 ++++++++------ mod/workshop/version.php | 11 ++++------- 20 files changed, 192 insertions(+), 118 deletions(-) diff --git a/mod/assignment/version.php b/mod/assignment/version.php index 8bcda08d998..4b787e77fc2 100644 --- a/mod/assignment/version.php +++ b/mod/assignment/version.php @@ -1,12 +1,31 @@ . -//////////////////////////////////////////////////////////////////////////////// -// Code fragment to define the module version etc. -// This fragment is called by /admin/index.php -//////////////////////////////////////////////////////////////////////////////// - -$module->version = 2010102600; -$module->requires = 2010102600; // Requires this Moodle version -$module->cron = 60; +/** + * Version information + * + * @package mod + * @subpackage assignment + * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +defined('MOODLE_INTERNAL') || die(); +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_assignment'; // Full name of the plugin (used for diagnostics) +$module->cron = 60; diff --git a/mod/chat/version.php b/mod/chat/version.php index 55337a9d0d1..48dba991e3a 100644 --- a/mod/chat/version.php +++ b/mod/chat/version.php @@ -1,10 +1,31 @@ . -///////////////////////////////////////////////////////////////////////////////// -/// Code fragment to define the version of chat -/// This fragment is called by moodle_needs_upgrading() and /admin/index.php -///////////////////////////////////////////////////////////////////////////////// +/** + * Version information + * + * @package mod + * @subpackage chat + * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ -$module->version = 2010080302; // The (date) version of this module -$module->requires = 2010080300; // Requires this Moodle version -$module->cron = 300; // How often should cron check this module (seconds)? +defined('MOODLE_INTERNAL') || die(); + +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_chat'; // Full name of the plugin (used for diagnostics) +$module->cron = 300; diff --git a/mod/choice/version.php b/mod/choice/version.php index a31312fd41b..672932ddb77 100644 --- a/mod/choice/version.php +++ b/mod/choice/version.php @@ -1,12 +1,31 @@ . -//////////////////////////////////////////////////////////////////////////////// -// Code fragment to define the module version etc. -// This fragment is called by /admin/index.php -//////////////////////////////////////////////////////////////////////////////// - -$module->version = 2010101301; -$module->requires = 2010080300; // Requires this Moodle version -$module->cron = 0; +/** + * Version information + * + * @package mod + * @subpackage choice + * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +defined('MOODLE_INTERNAL') || die(); +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_choice'; // Full name of the plugin (used for diagnostics) +$module->cron = 0; diff --git a/mod/data/version.php b/mod/data/version.php index 241c818f9d4..1add7a141ff 100644 --- a/mod/data/version.php +++ b/mod/data/version.php @@ -19,12 +19,13 @@ * * @package mod * @subpackage data - * @copyright 2005 onwards Martin Dougiamas {@link http://moodle.com} + * @copyright 2005 onwards Martin Dougiamas {@link http://moodle.com} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011102800; -$module->requires = 2011102700; // Requires this Moodle version -$module->cron = 60; // Period for cron to check this module (secs) +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_data'; // Full name of the plugin (used for diagnostics) +$module->cron = 60; diff --git a/mod/feedback/version.php b/mod/feedback/version.php index 2334719c89a..542d14a70ff 100644 --- a/mod/feedback/version.php +++ b/mod/feedback/version.php @@ -15,17 +15,19 @@ // along with Moodle. If not, see . /** - * Code fragment to define the version of feedback - * This fragment is called by moodle_needs_upgrading() and /admin/index.php + * Feedback version information * - * @author Andreas Grabs - * @license http://www.gnu.org/copyleft/gpl.html GNU Public License - * @package feedback + * @package mod + * @subpackage feedback + * @author Andreas Grabs + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ +defined('MOODLE_INTERNAL') || die(); + +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_feedback'; // Full name of the plugin (used for diagnostics) +$module->cron = 0; -$module->version = 2011102800; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2011102700; // Requires this Moodle version $feedback_version_intern = 1; //this version is used for restore older backups -$module->cron = 0; // Period for cron to check this module (secs) - diff --git a/mod/folder/version.php b/mod/folder/version.php index d23f949a05b..eb10fa2ec1b 100644 --- a/mod/folder/version.php +++ b/mod/folder/version.php @@ -1,5 +1,4 @@ version = 2010101400; -$module->requires = 2010080300; // Requires this Moodle version -$module->cron = 0; - +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_folder'; // Full name of the plugin (used for diagnostics) +$module->cron = 0; diff --git a/mod/forum/version.php b/mod/forum/version.php index 8ebae3660ec..4f142a7ac0f 100644 --- a/mod/forum/version.php +++ b/mod/forum/version.php @@ -15,8 +15,7 @@ // along with Moodle. If not, see . /** - * Code fragment to define the module version etc. - * This fragment is called by /admin/index.php + * Version information * * @package mod * @subpackage forum @@ -26,7 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011110601; -$module->requires = 2011110200; // Requires this Moodle version +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_forum'; // Full name of the plugin (used for diagnostics) $module->cron = 60; -$module->component = 'mod_forum'; \ No newline at end of file diff --git a/mod/glossary/version.php b/mod/glossary/version.php index c6e8ac9d8a3..250d9373837 100644 --- a/mod/glossary/version.php +++ b/mod/glossary/version.php @@ -25,6 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011102800; -$module->requires = 2011102700; // Requires this Moodle version -$module->cron = 0; // Period for cron to check this module (secs) +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_glossary'; // Full name of the plugin (used for diagnostics) +$module->cron = 0; diff --git a/mod/imscp/version.php b/mod/imscp/version.php index 84624f27354..2676022e4eb 100644 --- a/mod/imscp/version.php +++ b/mod/imscp/version.php @@ -1,5 +1,4 @@ version = 2010101400; -$module->requires = 2010080300; // Requires this Moodle version -$module->cron = 0; - +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_imscp'; // Full name of the plugin (used for diagnostics) +$module->cron = 0; diff --git a/mod/label/version.php b/mod/label/version.php index 9e7e77b25de..01f49769b98 100644 --- a/mod/label/version.php +++ b/mod/label/version.php @@ -1,5 +1,4 @@ version = 2010080300; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2010080300; // Requires this Moodle version -$module->cron = 0; // Period for cron to check this module (secs) - +defined('MOODLE_INTERNAL') || die(); +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_label'; // Full name of the plugin (used for diagnostics) +$module->cron = 0; diff --git a/mod/lesson/version.php b/mod/lesson/version.php index 8a193e7cc2c..c65af966cd4 100644 --- a/mod/lesson/version.php +++ b/mod/lesson/version.php @@ -1,5 +1,4 @@ . /** - * Code fragment to define the version of lesson - * This fragment is called by moodle_needs_upgrading() and /admin/index.php + * Version information * * @package mod * @subpackage lesson * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or late - **/ + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ defined('MOODLE_INTERNAL') || die(); -$module->version = 2010122200; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2010080300; // Requires this Moodle version -$module->cron = 0; // Period for cron to check this module (secs) - - +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_lesson'; // Full name of the plugin (used for diagnostics) +$module->cron = 0; diff --git a/mod/lti/version.php b/mod/lti/version.php index a9d57608ce4..16fbb7a7b4d 100644 --- a/mod/lti/version.php +++ b/mod/lti/version.php @@ -49,7 +49,7 @@ defined('MOODLE_INTERNAL') || die; -$module->version = 2011111601;; -$module->requires = 2011110200; // Requires this Moodle version +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_lti'; // Full name of the plugin (used for diagnostics) $module->cron = 0; -$module->component = 'mod_lti'; diff --git a/mod/page/version.php b/mod/page/version.php index 4a557ce46d6..5fb8f802eb0 100644 --- a/mod/page/version.php +++ b/mod/page/version.php @@ -1,5 +1,4 @@ version = 2010101400; -$module->requires = 2010080300; // Requires this Moodle version -$module->cron = 0; +defined('MOODLE_INTERNAL') || die(); +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_page'; // Full name of the plugin (used for diagnostics) +$module->cron = 0; diff --git a/mod/quiz/version.php b/mod/quiz/version.php index c9ebe0847cf..12deea0ed54 100644 --- a/mod/quiz/version.php +++ b/mod/quiz/version.php @@ -25,6 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011100604; -$module->requires = 2011060313; -$module->cron = 0; +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics) +$module->cron = 0; diff --git a/mod/resource/version.php b/mod/resource/version.php index 1efbf1f007e..cdb37cb3a1e 100644 --- a/mod/resource/version.php +++ b/mod/resource/version.php @@ -1,5 +1,4 @@ version = 2011022700; -$module->requires = 2010080300; // Requires this Moodle version +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_resource'; // Full name of the plugin (used for diagnostics) $module->cron = 0; -$module->component = 'mod_resource'; diff --git a/mod/scorm/version.php b/mod/scorm/version.php index 52a0c192a2e..c66b90883eb 100644 --- a/mod/scorm/version.php +++ b/mod/scorm/version.php @@ -23,6 +23,9 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -$module->version = 2011110502; // The (date) version of this module -$module->requires = 2010080300; // The version of Moodle that is required -$module->cron = 300; // How often should cron check this module (seconds)? +defined('MOODLE_INTERNAL') || die(); + +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_scorm'; // Full name of the plugin (used for diagnostics) +$module->cron = 300; diff --git a/mod/survey/version.php b/mod/survey/version.php index 3b5acd46495..531e5bba1dd 100644 --- a/mod/survey/version.php +++ b/mod/survey/version.php @@ -1,12 +1,31 @@ . -//////////////////////////////////////////////////////////////////////////////// -// Code fragment to define the module version etc. -// This fragment is called by /admin/index.php -//////////////////////////////////////////////////////////////////////////////// - -$module->version = 2010080300; -$module->requires = 2010080300; // Requires this Moodle version -$module->cron = 0; +/** + * Version information + * + * @package mod + * @subpackage survey + * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +defined('MOODLE_INTERNAL') || die(); +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_survey'; // Full name of the plugin (used for diagnostics) +$module->cron = 0; diff --git a/mod/url/version.php b/mod/url/version.php index c96bc27f7be..28c0ee49d0d 100644 --- a/mod/url/version.php +++ b/mod/url/version.php @@ -1,5 +1,4 @@ version = 2011092801; -$module->requires = 2010080300; // Requires this Moodle version -$module->cron = 0; +defined('MOODLE_INTERNAL') || die(); +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_url'; // Full name of the plugin (used for diagnostics) +$module->cron = 0; diff --git a/mod/wiki/version.php b/mod/wiki/version.php index 8d7b259d1dc..b2895459fa9 100644 --- a/mod/wiki/version.php +++ b/mod/wiki/version.php @@ -1,5 +1,4 @@ . +// along with Moodle. If not, see . /** * Code fragment to define the version of wiki @@ -32,6 +31,9 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -$module->version = 2011011001; // The current module version (Date: YYYYMMDDXX) -$module->requires = 2010080300; -$module->cron = 0; // Period for cron to check this module (secs) +defined('MOODLE_INTERNAL') || die(); + +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_wiki'; // Full name of the plugin (used for diagnostics) +$module->cron = 0; diff --git a/mod/workshop/version.php b/mod/workshop/version.php index 83db5beafd8..9fd8a8cdab3 100644 --- a/mod/workshop/version.php +++ b/mod/workshop/version.php @@ -1,5 +1,4 @@ @@ -29,6 +25,7 @@ defined('MOODLE_INTERNAL') || die(); -$module->version = 2011110400; -$module->requires = 2011020900; // Requires this Moodle version -//$module->cron = 60; +$module->version = 2011112900; // The current module version (Date: YYYYMMDDXX) +$module->requires = 2011112900; // Requires this Moodle version +$module->component = 'mod_workshop'; // Full name of the plugin (used for diagnostics) +$module->cron = 0;