From: Michael J. Rubinsky Date: Sat, 1 May 2010 14:29:04 +0000 (-0400) Subject: Add activesync prefGroup, only show it if activesync is enabled. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a33ff9d77935a07452690313e69c5ad4927ca346;p=horde.git Add activesync prefGroup, only show it if activesync is enabled. --- 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'; + } } /**