Commit ceea7b29 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Check value of max items in inbox block configuration (bug #619581)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent bdb231a9
......@@ -138,6 +138,10 @@ class PluginBlocktypeInbox extends SystemBlocktype {
'title' => get_string('maxitems', 'blocktype.inbox'),
'description' => get_string('maxitemsdescription', 'blocktype.inbox'),
'defaultvalue' => isset($configdata['maxitems']) ? $configdata['maxitems'] : 5,
'rules' => array(
'minvalue' => 1,
'maxvalue' => 100,
),
);
return $elements;
......
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