diff --git a/preferences/inc/hook_config.inc.php b/preferences/inc/hook_config.inc.php index 5cdbdd363a..0dd21c59ca 100644 --- a/preferences/inc/hook_config.inc.php +++ b/preferences/inc/hook_config.inc.php @@ -12,6 +12,33 @@ /* $Id$ */ + + function country_set($config) + { + global $phpgw; + + $country = array( + 'user_choice' => 'User Choice', + 'force_select' => 'Force Selectbox' + ); + + while (list ($key, $value) = each ($country)) + { + if ($config['countrylist'] == $key) + { + $selected = ' selected'; + } + else + { + $selected = ''; + } + $descr = lang($value); + + $out .= '' . "\n"; + } + return $out; + } + function force_theme($config) { global $phpgw; diff --git a/preferences/settings.php b/preferences/settings.php index 8723c8d45a..29de2a394f 100755 --- a/preferences/settings.php +++ b/preferences/settings.php @@ -16,6 +16,7 @@ $phpgw_info["flags"] = array("nonavbar" => True, "noheader" => True); } $phpgw_info["flags"]["currentapp"] = "preferences"; + $phpgw_info["flags"]["enable_sbox_class"] = True; include("../header.inc.php"); @@ -195,6 +196,35 @@ ?> + +