From 65eb2e97b7b5da9a5d102519f3bb442a96fb8937 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 6 Jul 2010 00:16:49 +0200 Subject: [PATCH] Add option to disable LDAP configuration. --- framework/Core/lib/Horde/Config.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/framework/Core/lib/Horde/Config.php b/framework/Core/lib/Horde/Config.php index ecd3a1c55..b2df8a015 100644 --- a/framework/Core/lib/Horde/Config.php +++ b/framework/Core/lib/Horde/Config.php @@ -731,7 +731,20 @@ class Horde_Config ); if (isset($node) && $node->getAttribute('baseconfig') == 'true') { - return $fields; + return array( + 'desc' => 'Use LDAP?', + 'default' => $this->_default($ctx . '|' . $node->getAttribute('switchname'), false), + 'switch' => array( + 'false' => array( + 'desc' => 'No', + 'fields' => array() + ), + 'true' => array( + 'desc' => 'Yes', + 'fields' => $fields + ), + ) + ); } list($default, $isDefault) = $this->__default($ctx . '|' . (isset($node) ? $node->getAttribute('switchname') : $switchname), 'horde'); -- 2.11.0