Skip to content

Commit

Permalink
MDL-15402: trivial stuff into the repository lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jerome committed Oct 22, 2008
1 parent 795834f commit 8f943eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion repository/lib.php
Expand Up @@ -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
*/
Expand Down Expand Up @@ -1384,6 +1384,7 @@ public function definition() {
$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);
Expand Down

0 comments on commit 8f943eb

Please sign in to comment.