Add activesync prefGroup, only show it if activesync is enabled.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 1 May 2010 14:29:04 +0000 (10:29 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 1 May 2010 14:29:04 +0000 (10:29 -0400)
horde/config/prefs.php.dist
horde/lib/Prefs/Ui.php

index 369644f..ed0e8fd 100644 (file)
@@ -606,7 +606,6 @@ $_prefs['twitter'] = array(
 
 
 // *** IMSP Intergration Preferences ***
-
 $prefGroups['imspauth'] = array(
     'column' => _("Other Information"),
     'label' => _("Alternate IMSP Login"),
@@ -626,8 +625,6 @@ $_prefs['imsp_auth_pass'] = array(
     'desc' => _("Alternate IMSP Password")
 );
 
-
-
 // *** SyncML Preferences ***
 $prefGroups['syncml'] = array(
     'column' => _("Other Information"),
@@ -640,7 +637,17 @@ $_prefs['syncmlmanagement'] = array(
     'type' => 'special'
 );
 
+// *** ActiveSync Preferences ***
+$prefGroups['activesync'] = array(
+    'column' => _("Other Information"),
+    'label' => _("ActiveSync"),
+    'desc' => _("Manage your ActiveSync devices."),
+    'members' => array('activesyncmanagement')
+);
 
+$_prefs['activesyncmanagement'] = array(
+    'type' => 'special'
+);
 
 // *** Internal Preferences ***
 
index 33fc976..52075ad 100644 (file)
@@ -115,6 +115,10 @@ class Horde_Prefs_Ui
         if (empty($conf['imsp']['enabled'])) {
             $ui->suppressGroups[] = 'imspauth';
         }
+
+        if (empty($conf['activesync']['enabled'])) {
+            $ui->suppressGroups[] = 'activesync';
+        }
     }
 
     /**