added a kind of hook for template-specific prefs (show at the end of the normal prefs)

This commit is contained in:
Ralf Becker 2003-11-04 14:11:04 +00:00
parent 58df15c97f
commit 6ab44c51de
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<?php
/**************************************************************************\
* eGroupWare - Preferences *
* http://www.eGroupWare.org *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
create_input_box('Max number of icons in navbar','max_icons',
'How many icons should be shown in the navbar (top of the page). Additional icons go into a kind of pulldown menu, callable by the icon on the far right side of the navbar.','',3);

View File

@ -503,6 +503,11 @@
$GLOBALS['phpgw_info']['navbar'][$_GET['appname']]['title'],PHPGW_SERVER_ROOT . SEP $GLOBALS['phpgw_info']['navbar'][$_GET['appname']]['title'],PHPGW_SERVER_ROOT . SEP
. $_GET['appname'] . SEP . 'inc' . SEP . 'hook_settings.inc.php')); . $_GET['appname'] . SEP . 'inc' . SEP . 'hook_settings.inc.php'));
} }
$tmpl_settings = PHPGW_TEMPLATE_DIR.'/hook_settings.inc.php';
if ($_GET['appname'] == 'preferences' && file_exists($tmpl_settings))
{
include($tmpl_settings);
}
if (count($notifys)) // there have been notifys in the hook, we need to save in the session if (count($notifys)) // there have been notifys in the hook, we need to save in the session
{ {