Commit 5dc94ee8 authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review
Browse files

Merge "Text block: Change to switchbox (Bug #1431569)"

parents 3e7ab4da 4246c25c
......@@ -31,4 +31,4 @@ $string['convertibleokmessage'] = array(
0 => 'Successfully converted 1 "Note" block to "Text" block.',
1 => 'Successfully converted %d "Note" blocks to "Text" blocks.'
);
$string['checkdescription'] = 'If checked, all "Note" blocks that do not use any advanced features will be converted into simple "Text" blocks';
$string['switchdescription'] = 'Convert all "Note" blocks that do not use any advanced features into simple "Text" blocks.';
......@@ -179,10 +179,10 @@ class PluginBlocktypeText extends SystemBlocktype {
$convertibleblocksnumber),
),
'convertcheckbox' => array(
'type' => 'checkbox',
'type' => 'switchbox',
'defaultvalue' => false,
'title' => get_string('optionlegend', 'blocktype.text'),
'description' => get_string('checkdescription', 'blocktype.text'),
'description' => get_string('switchdescription', 'blocktype.text'),
),
)
);
......
Markdown is supported
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