Commit 0e091386 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Comments: Change to switchboxes (Bug 1431569)"

parents 93770a78 71006260
......@@ -71,7 +71,7 @@ else {
);
}
$elements['ispublic'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('makepublic', 'artefact.comment'),
'defaultvalue' => !$comment->get('private'),
);
......
......@@ -768,7 +768,7 @@ class ArtefactTypeComment extends ArtefactType {
);
}
$form['elements']['ispublic'] = array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('makepublic', 'artefact.comment'),
'defaultvalue' => !$defaultprivate,
);
......@@ -893,7 +893,7 @@ class ArtefactTypeComment extends ArtefactType {
public static function get_config_options() {
$elements = array(
'commentratings' => array(
'type' => 'checkbox',
'type' => 'switchbox',
'title' => get_string('commentratings', 'artefact.comment'),
'defaultvalue' => get_config_plugin('artefact', 'comment', 'commentratings'),
'help' => true,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment