Commit 0278268b authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add limits to width & height fields in internalmedia block


Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 50147af8
......@@ -87,12 +87,14 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
'title' => get_string('width'),
'size' => 3,
'defaultvalue' => (isset($configdata['width'])) ? $configdata['width'] : '',
'rules' => array('minvalue' => 1, 'maxvalue' => 2000),
),
'height' => array(
'type' => 'text',
'title' => get_string('height'),
'size' => 3,
'defaultvalue' => (isset($configdata['height'])) ? $configdata['height'] : '',
'rules' => array('minvalue' => 1, 'maxvalue' => 2000),
),
);
}
......
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