Commit 0704ce1c authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Use pieforms correctly in admin plugin config

parent da36662d
......@@ -97,16 +97,15 @@ function pluginconfig_submit($values) {
json_reply(false, get_string('settingssaved'));
}
else {
json_reply(false, get_string('settingssavefailed'));
json_reply('local', get_string('settingssavefailed'));
}
}
function pluginconfig_validate(Form $form, $values) {
function pluginconfig_validate(PieForm $form, $values) {
global $validatefunction, $plugintype, $pluginname, $classname;
if (!empty($validatefunction)) {
call_static_method($classname, $validatefunction, $form, $values);
}
}
}
?>
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