Commit fff1cba3 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Make pluginconfig work with pieforms

parent c655af56
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
define('INTERNAL', 1); define('INTERNAL', 1);
define('ADMIN', 1); define('ADMIN', 1);
require(dirname(dirname(dirname(__FILE__))) . '/init.php'); require(dirname(dirname(dirname(__FILE__))) . '/init.php');
require_once('form.php'); require_once('pieforms/pieform.php');
$plugintype = param_alpha('plugintype'); $plugintype = param_alpha('plugintype');
$pluginname = param_alpha('pluginname'); $pluginname = param_alpha('pluginname');
...@@ -71,7 +71,7 @@ $form['elements']['type'] = array( ...@@ -71,7 +71,7 @@ $form['elements']['type'] = array(
); );
$smarty = smarty(); $smarty = smarty();
$smarty->assign('form', form($form)); $smarty->assign('form', pieform($form));
$smarty->assign('plugintype', $plugintype); $smarty->assign('plugintype', $plugintype);
$smarty->assign('pluginname', $pluginname); $smarty->assign('pluginname', $pluginname);
$smarty->assign('type', $type); $smarty->assign('type', $type);
...@@ -101,7 +101,7 @@ function pluginconfig_submit($values) { ...@@ -101,7 +101,7 @@ function pluginconfig_submit($values) {
} }
} }
function pluginconfig_validate(Form $form, $values) { function pluginconfig_validate(Pieform $form, $values) {
global $validatefunction, $plugintype, $pluginname, $classname; global $validatefunction, $plugintype, $pluginname, $classname;
if (!empty($validatefunction)) { if (!empty($validatefunction)) {
call_static_method($classname, $validatefunction, $form, $values); call_static_method($classname, $validatefunction, $form, $values);
......
Supports Markdown
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