Skip to content

Commit

Permalink
Merge branch 'MDL-75910-400' of https://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
…into MOODLE_400_STABLE
  • Loading branch information
junpataleta committed Oct 10, 2022
2 parents 45ea811 + fc40e74 commit 169cb76
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/form/editor.php
Expand Up @@ -64,6 +64,9 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element implements templatab
/** @var array values for editor */
protected $_values = array('text'=>null, 'format'=>null, 'itemid'=>null);

/** @var bool if true label will be hidden */
protected $_hiddenLabel = false;

/**
* Constructor
*
Expand Down Expand Up @@ -496,4 +499,14 @@ function getFrozenHtml() {

return '';
}

/**
* Sets label to be hidden.
*
* @param bool $hiddenLabel Whether the label should be hidden or not.
* @return void
*/
function setHiddenLabel($hiddenLabel) {
$this->_hiddenLabel = $hiddenLabel;
}
}
5 changes: 5 additions & 0 deletions lib/form/templates/element-editor-inline.mustache
@@ -0,0 +1,5 @@
{{< core_form/element-template-inline }}
{{$element}}
{{{element.html}}}
{{/element}}
{{/ core_form/element-template-inline }}

0 comments on commit 169cb76

Please sign in to comment.