diff --git a/pixelegg/hook_settings.inc.php b/pixelegg/hook_settings.inc.php index 71a69bf6aa..cf5a6dfd36 100644 --- a/pixelegg/hook_settings.inc.php +++ b/pixelegg/hook_settings.inc.php @@ -39,13 +39,6 @@ $colors = array( '#b4b4b4' => lang('Gray'), ); -$textsize = array ( - '10' => lang('small'), - '12' => lang('standard'), - '14' => lang('large'), - '16' => lang('x-large') -); - asort($colors); $colors['custom'] = lang('Custom color'); // custom allways last $template_colors = array(); @@ -138,17 +131,6 @@ $GLOBALS['settings'] = array( 'xmlrpc' => False, 'admin' => False, ), - 'textsize' => array( - 'type' => 'select', - 'label' => 'Set content size', - 'no_lang' => true, - 'name' => 'textsize', - 'help' => lang('It sets content size (text only) according to selected size.'), - 'xmlrpc' => True, - 'values' => $textsize, - 'default' => '12', - 'admin' => False, - ), 'navbar_format' => false, // not used in JDots (defined in common prefs) 'default_app' => false, // not used in JDots, as we can have multiple tabs open ... ); diff --git a/preferences/inc/class.preferences_hooks.inc.php b/preferences/inc/class.preferences_hooks.inc.php index aed6b1da6a..4c98ead663 100644 --- a/preferences/inc/class.preferences_hooks.inc.php +++ b/preferences/inc/class.preferences_hooks.inc.php @@ -131,6 +131,14 @@ class preferences_hooks $font_size_options = Api\Etemplate\Widget\HtmlArea::$font_size_options; } + + $textsize = array ( + '10' => lang('small'), + '12' => lang('standard'), + '14' => lang('large'), + '16' => lang('x-large') + ); + // Settings array for this app $settings = array( array( @@ -147,6 +155,17 @@ class preferences_hooks 'admin' => False, 'forced' => 20, // hidden as not used in eTemplate2 ), + 'textsize' => array( + 'type' => 'select', + 'label' => 'Set content size', + 'no_lang' => true, + 'name' => 'textsize', + 'help' => lang('It sets content size (text only) according to selected size.'), + 'xmlrpc' => True, + 'values' => $textsize, + 'default' => '12', + 'admin' => False, + ), 'lazy-update' => array( 'type' => 'select', 'label' => 'How to update lists',