[Kolab-devel] [issue3871] horde: new option to disable "options" link in left sidebar

Soenke Schwardt-Krummrich issues at kolab.org
Mon Sep 21 15:23:56 CEST 2009


New submission from Soenke Schwardt-Krummrich <schwardt at univention.de>:

This patch adds a new config option to hide the "options" link
in oldstyle sidebar. The "options" link at the menu on the top
is unaffected.

----------
assignedto: wrobel
files: t_horde_HK_UV_hideOptionsInSidebar.diff
keyword: web client
messages: 21744
nosy: martin, schwardt, thomas, wilde, wrobel
priority: feature
status: unread
title: horde: new option to disable "options" link in left sidebar

______________________________________
Kolab issue tracker <issues at kolab.org>
<https://issues.kolab.org/issue3871>
______________________________________
-------------- next part --------------
Patch by schwardt at univention.de (Fri Sep 11 16:51:37 2009 +0200):

horde: new option to disable "options" link in left sidebar

This patch adds a new config option to hide the "options" link
in oldstyle sidebar. The "options" link at the menu on the top
is unaffected.


--- a/horde-webmail/config/conf.php
+++ b/horde-webmail/config/conf.php
@@ -79,6 +79,7 @@ $conf['problems']['tickets'] = false;
 $conf['problems']['attachments'] = true;
 $conf['menu']['apps'] = array();
 $conf['menu']['always'] = false;
+$conf['menu']['options_in_sidebar'] = true;
 $conf['menu']['links']['help'] = 'all';
 $conf['menu']['links']['options'] = 'authenticated';
 $conf['menu']['links']['problem'] = 'all';
--- a/horde-webmail/config/conf.xml
+++ b/horde-webmail/config/conf.xml
@@ -1510,6 +1510,8 @@
 
    <configboolean name="always" desc="Should we <strong>always
    </strong> display the Horde frameset?">false</configboolean>
+   <configboolean name="options_in_sidebar" desc="Should we display "options"
+   in left sidebar?">true</configboolean>
 
    <configsection name="links">
     <configenum name="help" desc="Should we display help links in the
--- a/horde-webmail/services/portal/sidebar.php
+++ b/horde-webmail/services/portal/sidebar.php
@@ -137,6 +137,7 @@ function buildMenu()
     }
 
     if (Horde::showService('options') &&
+		(isset($conf['menu']['options_in_sidebar']) ? $conf['menu']['options_in_sidebar'] : true) &&
         $conf['prefs']['driver'] != '' && $conf['prefs']['driver'] != 'none') {
         $menu['options'] = array('name' => _("Options"),
                                  'status' => 'active',


More information about the devel mailing list