Commit 675ece0d authored by Donal McMullan's avatar Donal McMullan
Browse files

Use the 'ignore' feature of pieforms

parent fab348cb
......@@ -153,22 +153,18 @@ if ($institution || $add) {
'maxlength' => 255
),
'help' => true,
));
if (count($authtypes) > 0) {
$elements = array_merge($elements, array(
'authplugin' => array(
'type' => 'authlist',
'title' => get_string('authplugin', 'admin'),
'options' => $authinstances,
'authtypes' => $authtypes,
'instancearray' => $instancearray,
'instancestring' => implode(',',$instancearray),
'institution' => $institution,
'help' => true,
)
));
}
$elements = array_merge($elements, array(
),
'authplugin' => array(
'type' => 'authlist',
'title' => get_string('authplugin', 'admin'),
'options' => $authinstances,
'authtypes' => $authtypes,
'instancearray' => $instancearray,
'instancestring' => implode(',',$instancearray),
'institution' => $institution,
'help' => true,
'ignore' => count($authtypes) == 0
),
'registerallowed' => array(
'type' => 'checkbox',
'title' => get_string('registrationallowed', 'admin'),
......@@ -202,7 +198,7 @@ if ($institution || $add) {
. get_help_icon('core', 'admin', 'institution', 'lockedfields')
. '</th></tr>'
)
));
);
foreach (ArtefactTypeProfile::get_all_fields() as $field => $type) {
$elements[$field] = array(
......
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