From a33ff9d77935a07452690313e69c5ad4927ca346 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 1 May 2010 10:29:04 -0400 Subject: [PATCH] Add activesync prefGroup, only show it if activesync is enabled. --- horde/config/prefs.php.dist | 13 ++++++++++--- horde/lib/Prefs/Ui.php | 4 ++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/horde/config/prefs.php.dist b/horde/config/prefs.php.dist index 369644f4e..ed0e8fde6 100644 --- a/horde/config/prefs.php.dist +++ b/horde/config/prefs.php.dist @@ -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 *** diff --git a/horde/lib/Prefs/Ui.php b/horde/lib/Prefs/Ui.php index 33fc97633..52075ad95 100644 --- a/horde/lib/Prefs/Ui.php +++ b/horde/lib/Prefs/Ui.php @@ -115,6 +115,10 @@ class Horde_Prefs_Ui if (empty($conf['imsp']['enabled'])) { $ui->suppressGroups[] = 'imspauth'; } + + if (empty($conf['activesync']['enabled'])) { + $ui->suppressGroups[] = 'activesync'; + } } /** -- 2.11.0