Replaced deprecated function
This commit is contained in:
parent
8ce63d5927
commit
b382cc5b92
14 changed files with 14 additions and 14 deletions
|
@ -25,5 +25,5 @@
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
||||||
$plugin->requires = 2014051200; // Requires this Moodle version (2.7).
|
$plugin->requires = 2015051100; // Requires this Moodle version (2.9).
|
||||||
$plugin->component = 'customcertelement_border';
|
$plugin->component = 'customcertelement_border';
|
||||||
|
|
|
@ -25,5 +25,5 @@
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
||||||
$plugin->requires = 2014051200; // Requires this Moodle version (2.7).
|
$plugin->requires = 2015051100; // Requires this Moodle version (2.9).
|
||||||
$plugin->component = 'customcertelement_categoryname';
|
$plugin->component = 'customcertelement_categoryname';
|
||||||
|
|
|
@ -25,5 +25,5 @@
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
||||||
$plugin->requires = 2014051200; // Requires this Moodle version (2.7).
|
$plugin->requires = 2015051100; // Requires this Moodle version (2.9).
|
||||||
$plugin->component = 'customcertelement_code';
|
$plugin->component = 'customcertelement_code';
|
||||||
|
|
|
@ -25,5 +25,5 @@
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
||||||
$plugin->requires = 2014051200; // Requires this Moodle version (2.7).
|
$plugin->requires = 2015051100; // Requires this Moodle version (2.9).
|
||||||
$plugin->component = 'customcertelement_coursename';
|
$plugin->component = 'customcertelement_coursename';
|
||||||
|
|
|
@ -25,5 +25,5 @@
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
||||||
$plugin->requires = 2014051200; // Requires this Moodle version (2.7).
|
$plugin->requires = 2015051100; // Requires this Moodle version (2.9).
|
||||||
$plugin->component = 'customcertelement_date';
|
$plugin->component = 'customcertelement_date';
|
||||||
|
|
|
@ -25,5 +25,5 @@
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
||||||
$plugin->requires = 2014051200; // Requires this Moodle version (2.7).
|
$plugin->requires = 2015051100; // Requires this Moodle version (2.9).
|
||||||
$plugin->component = 'customcertelement_grade';
|
$plugin->component = 'customcertelement_grade';
|
||||||
|
|
|
@ -25,5 +25,5 @@
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
||||||
$plugin->requires = 2014051200; // Requires this Moodle version (2.7).
|
$plugin->requires = 2015051100; // Requires this Moodle version (2.9).
|
||||||
$plugin->component = 'customcertelement_gradeitemname';
|
$plugin->component = 'customcertelement_gradeitemname';
|
||||||
|
|
|
@ -25,5 +25,5 @@
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
||||||
$plugin->requires = 2014051200; // Requires this Moodle version (2.7).
|
$plugin->requires = 2015051100; // Requires this Moodle version (2.9).
|
||||||
$plugin->component = 'customcertelement_image';
|
$plugin->component = 'customcertelement_image';
|
||||||
|
|
|
@ -25,5 +25,5 @@
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
||||||
$plugin->requires = 2014051200; // Requires this Moodle version (2.7).
|
$plugin->requires = 2015051100; // Requires this Moodle version (2.9).
|
||||||
$plugin->component = 'customcertelement_studentname';
|
$plugin->component = 'customcertelement_studentname';
|
||||||
|
|
|
@ -25,5 +25,5 @@
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
||||||
$plugin->requires = 2014051200; // Requires this Moodle version (2.7).
|
$plugin->requires = 2015051100; // Requires this Moodle version (2.9).
|
||||||
$plugin->component = 'customcertelement_teachername';
|
$plugin->component = 'customcertelement_teachername';
|
||||||
|
|
|
@ -25,5 +25,5 @@
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
||||||
$plugin->requires = 2014051200; // Requires this Moodle version (2.7).
|
$plugin->requires = 2015051100; // Requires this Moodle version (2.9).
|
||||||
$plugin->component = 'customcertelement_text';
|
$plugin->component = 'customcertelement_text';
|
||||||
|
|
|
@ -25,5 +25,5 @@
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
||||||
$plugin->requires = 2014051200; // Requires this Moodle version (2.7).
|
$plugin->requires = 2015051100; // Requires this Moodle version (2.9).
|
||||||
$plugin->component = 'customcertelement_userfield';
|
$plugin->component = 'customcertelement_userfield';
|
||||||
|
|
|
@ -46,7 +46,7 @@ class mod_customcert_mod_form extends moodleform_mod {
|
||||||
}
|
}
|
||||||
$mform->addRule('name', null, 'required', null, 'client');
|
$mform->addRule('name', null, 'required', null, 'client');
|
||||||
|
|
||||||
$this->add_intro_editor(false, get_string('description', 'customcert'));
|
$this->standard_intro_elements(get_string('description', 'customcert'));
|
||||||
|
|
||||||
$mform->addElement('header', 'options', get_string('options', 'customcert'));
|
$mform->addElement('header', 'options', get_string('options', 'customcert'));
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
|
||||||
|
|
||||||
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
$plugin->version = 2015080500; // The current module version (Date: YYYYMMDDXX).
|
||||||
$plugin->requires = 2014051200; // Requires this Moodle version (2.7).
|
$plugin->requires = 2015051100; // Requires this Moodle version (2.9).
|
||||||
$plugin->cron = 0; // Period for cron to check this module (secs).
|
$plugin->cron = 0; // Period for cron to check this module (secs).
|
||||||
$plugin->component = 'mod_customcert';
|
$plugin->component = 'mod_customcert';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue