forked from extern/egroupware
added a kind of hook for template-specific prefs (show at the end of the normal prefs)
This commit is contained in:
parent
58df15c97f
commit
6ab44c51de
15
phpgwapi/templates/idots/hook_settings.inc.php
Normal file
15
phpgwapi/templates/idots/hook_settings.inc.php
Normal 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);
|
@ -503,6 +503,11 @@
|
||||
$GLOBALS['phpgw_info']['navbar'][$_GET['appname']]['title'],PHPGW_SERVER_ROOT . SEP
|
||||
. $_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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user