Commit 4246c25c authored by Kristina Hoeppner's avatar Kristina Hoeppner
Browse files

Text block: Change to switchbox (Bug #1431569)



Change-Id: I1396a994d46699562a8570bece0e3946ec7a4cbd
Signed-off-by: Kristina Hoeppner's avatarKristina D.C. Hoeppner <kristina@catalyst.net.nz>
parent 1725ae01
...@@ -31,4 +31,4 @@ $string['convertibleokmessage'] = array( ...@@ -31,4 +31,4 @@ $string['convertibleokmessage'] = array(
0 => 'Successfully converted 1 "Note" block to "Text" block.', 0 => 'Successfully converted 1 "Note" block to "Text" block.',
1 => 'Successfully converted %d "Note" blocks to "Text" blocks.' 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 { ...@@ -179,10 +179,10 @@ class PluginBlocktypeText extends SystemBlocktype {
$convertibleblocksnumber), $convertibleblocksnumber),
), ),
'convertcheckbox' => array( 'convertcheckbox' => array(
'type' => 'checkbox', 'type' => 'switchbox',
'defaultvalue' => false, 'defaultvalue' => false,
'title' => get_string('optionlegend', 'blocktype.text'), '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