Function moodleform_mod::add_intro_editor() is deprecated

Issue #1 resolved
David Mudrák created an issue

When running in Moodle 2.9, this deprecation warning is raised. You can either release a separate branch for it, or replace your code in mod_form.php with something like

// Add the description field.
if ($CFG->version >= 2015051100) {
    // Moodle 2.9.0 and higher use the new API.
    $this->standard_intro_elements();
} else {
    $this->add_intro_editor();
}

Comments (1)

  1. Log in to comment