From: jerome Date: Wed, 22 Oct 2008 05:49:15 +0000 (+0000) Subject: MDL-15402: trivial stuff into the repository lib X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8f943ebab4fd47960d6280ccf69ab11b47d5e332;p=moodle.git MDL-15402: trivial stuff into the repository lib --- diff --git a/repository/lib.php b/repository/lib.php index bf4fa05f0d..595082a405 100644 --- a/repository/lib.php +++ b/repository/lib.php @@ -1036,7 +1036,7 @@ function repository_check_context($ctx_id) { /** * Return all types that you a user can create/edit and which are also visible - * Note: Mostly used in order to know if at least one editable type has been set + * Note: Mostly used in order to know if at least one editable type can be set * @param object $context the context for which we want the editable types * @return array types */ @@ -1384,6 +1384,7 @@ final class repository_type_form extends moodleform { $mform->addElement('hidden', 'edit', ($this->instance) ? $this->instance->get_typename() : 0); $mform->addElement('hidden', 'new', $this->plugin); $mform->addElement('hidden', 'plugin', $this->plugin); + // let the plugin add its specific fields if (!$this->instance) { $result = repository_static_function($this->plugin, 'type_config_form', $mform);