diff --git a/phpgwapi/templates/idots/hook_settings.inc.php b/phpgwapi/templates/idots/hook_settings.inc.php
index f5845400fb..1d04bcf0bc 100644
--- a/phpgwapi/templates/idots/hook_settings.inc.php
+++ b/phpgwapi/templates/idots/hook_settings.inc.php
@@ -11,6 +11,15 @@
/* $Id$ */
+ $user_apps = array();
+ foreach((array)$GLOBALS['egw_info']['user']['apps'] as $app => $data)
+ {
+ if($GLOBALS['egw_info']['apps'][$app]['status'] != 2 && $app)
+ {
+ $user_apps[$app] = $GLOBALS['egw_info']['apps'][$app]['title'] ? $GLOBALS['egw_info']['apps'][$app]['title'] : lang($app);
+ }
+ }
+
$top_menu = array(
'topmenu' => lang('Show as Topmenu'),
'sidebox' => lang('Show in sidebox')
@@ -32,6 +41,16 @@
'xmlrpc' => False,
'admin' => False,
),
+ 'default_app' => array(
+ 'type' => 'select',
+ 'label' => 'Default application',
+ 'name' => 'default_app',
+ 'values' => $user_apps,
+ 'help' => "The default application will be started when you enter eGroupWare or click on the homepage icon.
You can also have more than one application showing up on the homepage, if you don't choose a specific application here (has to be configured in the preferences of each application).",
+ 'xmlrpc' => False,
+ 'admin' => False,
+ 'default'=> '',
+ ),
'show_general_menu' => array(
'type' => 'select',
'label' => 'How to show the general eGroupWare menu ?',
diff --git a/phpgwapi/templates/jerryr/hook_settings.inc.php b/phpgwapi/templates/jerryr/hook_settings.inc.php
index ff993a68ac..fc918b1797 100644
--- a/phpgwapi/templates/jerryr/hook_settings.inc.php
+++ b/phpgwapi/templates/jerryr/hook_settings.inc.php
@@ -11,6 +11,15 @@
/* $Id$ */
+ $user_apps = array();
+ foreach((array)$GLOBALS['egw_info']['user']['apps'] as $app => $data)
+ {
+ if($GLOBALS['egw_info']['apps'][$app]['status'] != 2 && $app)
+ {
+ $user_apps[$app] = $GLOBALS['egw_info']['apps'][$app]['title'] ? $GLOBALS['egw_info']['apps'][$app]['title'] : lang($app);
+ }
+ }
+
$top_menu = array(
'topmenu' => lang('Show as Topmenu'),
'sidebox' => lang('Show in sidebox')
@@ -32,6 +41,16 @@
'xmlrpc' => False,
'admin' => False
),
+ 'default_app' => array(
+ 'type' => 'select',
+ 'label' => 'Default application',
+ 'name' => 'default_app',
+ 'values' => $user_apps,
+ 'help' => "The default application will be started when you enter eGroupWare or click on the homepage icon.
You can also have more than one application showing up on the homepage, if you don't choose a specific application here (has to be configured in the preferences of each application).",
+ 'xmlrpc' => False,
+ 'admin' => False,
+ 'default'=> '',
+ ),
'show_general_menu' => array(
'type' => 'select',
'label' => 'How to show the general eGroupWare menu ?',
diff --git a/preferences/inc/class.preferences_hooks.inc.php b/preferences/inc/class.preferences_hooks.inc.php
index 811922ace6..80a5f42e53 100644
--- a/preferences/inc/class.preferences_hooks.inc.php
+++ b/preferences/inc/class.preferences_hooks.inc.php
@@ -73,15 +73,6 @@ class preferences_hooks
'v2' => lang ('Silver theme')
);
- $user_apps = array();
- foreach((array)$GLOBALS['egw_info']['user']['apps'] as $app => $data)
- {
- if($GLOBALS['egw_info']['apps'][$app]['status'] != 2 && $app)
- {
- $user_apps[$app] = $GLOBALS['egw_info']['apps'][$app]['title'] ? $GLOBALS['egw_info']['apps'][$app]['title'] : lang($app);
- }
- }
-
$account_sels = array(
'selectbox' => lang('Selectbox'),
'primary_group' => lang('Selectbox with primary group and search'),
@@ -408,16 +399,6 @@ class preferences_hooks
'admin' => false,
'default'=> 'extended'
),
- 'default_app' => array(
- 'type' => 'select',
- 'label' => 'Default application',
- 'name' => 'default_app',
- 'values' => $user_apps,
- 'help' => "The default application will be started when you enter eGroupWare or click on the homepage icon.
You can also have more than one application showing up on the homepage, if you don't choose a specific application here (has to be configured in the preferences of each application).",
- 'xmlrpc' => False,
- 'admin' => False,
- 'default'=> '',
- ),
);
// disable thumbnails, if no size configured by admin
if (!$GLOBALS['egw_info']['server']['link_list_thumbnail']) unset($settings['link_list_thumbnail']);