Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
fff1cba3
Commit
fff1cba3
authored
Nov 21, 2006
by
Nigel McNie
Committed by
Nigel McNie
Nov 21, 2006
Browse files
Make pluginconfig work with pieforms
parent
c655af56
Changes
1
Show whitespace changes
Inline
Side-by-side
htdocs/admin/plugins/pluginconfig.php
View file @
fff1cba3
...
...
@@ -27,7 +27,7 @@
define
(
'INTERNAL'
,
1
);
define
(
'ADMIN'
,
1
);
require
(
dirname
(
dirname
(
dirname
(
__FILE__
)))
.
'/init.php'
);
require_once
(
'form.php'
);
require_once
(
'
pieforms/pie
form.php'
);
$plugintype
=
param_alpha
(
'plugintype'
);
$pluginname
=
param_alpha
(
'pluginname'
);
...
...
@@ -71,7 +71,7 @@ $form['elements']['type'] = array(
);
$smarty
=
smarty
();
$smarty
->
assign
(
'form'
,
form
(
$form
));
$smarty
->
assign
(
'form'
,
pie
form
(
$form
));
$smarty
->
assign
(
'plugintype'
,
$plugintype
);
$smarty
->
assign
(
'pluginname'
,
$pluginname
);
$smarty
->
assign
(
'type'
,
$type
);
...
...
@@ -101,7 +101,7 @@ function pluginconfig_submit($values) {
}
}
function
pluginconfig_validate
(
F
orm
$form
,
$values
)
{
function
pluginconfig_validate
(
Pief
orm
$form
,
$values
)
{
global
$validatefunction
,
$plugintype
,
$pluginname
,
$classname
;
if
(
!
empty
(
$validatefunction
))
{
call_static_method
(
$classname
,
$validatefunction
,
$form
,
$values
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment