[cvs] [Wiki] changed: CustomizingPreferences
Wiki Guest
wikiguest at horde.org
Tue Mar 24 16:51:09 UTC 2009
guest [193.50.125.9] Tue, 24 Mar 2009 12:51:09 -0400
Modified page: http://wiki.horde.org/CustomizingPreferences
New Revision: 3.4
Change log: change hook
@@ -521,9 +521,9 @@
We are using a CAS SSO as an Auth Method. So we don't have any horde
login page. So what?. Remember that in the login page, you can select
which mail frontend you want to use and also get rid of sidebar if
dimp is selected. It tooks time to understand how to do that.
post_authenticate can't do the job as user prefs are not loaded.
So:
We have to leave show_sidebar unlock, but people can't modify. To
do that, we don't display the value in prefs.php
-<code type=php>
+<code type="php">
$prefGroups['display'] = array(
'column' => _("Other Information"),
'label' => _("Display Options"),
'desc' => _("Set your startup application, color scheme, page
refreshing, and other display options."),
@@ -536,9 +536,9 @@
</code>
To select dimp, we need a change in registry.php
-<code type=php>
+<code type="php">
$this->applications['dimp'] = array(
'fileroot' => dirname(__FILE__) . '/../dimp',
'webroot' => $this->applications['horde']['webroot'] . '/dimp',
'name' => _("Dynamic Mail"),
@@ -548,9 +548,9 @@
<code>
And then, the change hook:
-<code type=php>
+<code type="php">
if (!function_exists('_prefs_change_hook_initial_application')) {
function _prefs_change_hook_initial_application()
{
$initapp=$GLOBALS['prefs']->getValue('initial_application');
More information about the cvs
mailing list