new hook_settings

This commit is contained in:
Pim Snel 2005-08-18 15:25:43 +00:00
parent cb59056b85
commit ffcacccea0

View File

@ -23,7 +23,7 @@
); );
$files = Array(); $files = Array();
$dir = '../phpgwapi/templates/idots2/images/backgrounds'; $dir = 'phpgwapi/templates/idots2/images/backgrounds';
$dh = opendir($dir); $dh = opendir($dir);
$files['none'] = "none"; $files['none'] = "none";
@ -52,112 +52,116 @@
'no' => lang('no') 'no' => lang('no')
); );
$GLOBALS['settings'] = array( $GLOBALS['settings'] = array(
'templ' => array( 'prefssection' => array(
'type' => 'section', 'type' => 'section',
'Preferences for the idots2 template set' 'title' => 'Preferences for the idots2 template set template set',
'xmlrpc' => False,
'admin' => False
), ),
'clock_show' => array( 'clock_show' => array(
'type' => 'select', 'type' => 'select',
'Show clock?', 'label' => 'Show clock?',
'clock_show', 'name' => 'clock_show',
$clock_show, 'values' => $clock_show,
'Would you like to display a clock on the right corner in the taskbar?' 'help' => '',
'xmlrpc' => False,
'admin' => False
), ),
'clock_min' => array( 'clock_min' => array(
'type' => 'select', 'type' => 'select',
'Update the clock per minute or per second', 'label' => 'Update the clock per minute or per second',
'clock_min', 'name' => 'clock_min',
$clock_min, 'help' => 'If the clock is enabled would you like it to update it every second or every minute?',
'If the clock is enabled would you like it to update it every second or every minute?' 'values' => $clock_min,
'xmlrpc' => False,
'admin' => False
), ),
'files' => array( 'files' => array(
'type' => 'select', 'type' => 'select',
'Choose a background image.', 'label' => 'Choose a background image.',
'files', 'name' => 'files',
$files, 'help' => 'If there are some images in the background folder you can choose the one you would like to see.',
'If there are some images in the background folder you can choose the one you would like to see.' 'values' => $files,
'xmlrpc' => False,
'admin' => False
), ),
'bckStyle' => array( 'blkStyle' => array(
'type' => 'select', 'type' => 'select',
'Choose a background style.', 'label' => 'Choose a background style.',
'bckStyle', 'name' => 'blkStyle',
$bckStyle, 'values' => $bckStyle,
'What style would you like the image to have?' 'help' => 'What style would you like the image to have?',
'xmlrpc' => False,
'admin' => False
), ),
'bgcolor' => array( 'bgcolor' => array(
'type' => 'input', 'type' => 'input',
'Choose a background color', 'label' => 'Choose a background color',
'bgcolor', 'name' => 'bgcolor',
'What color should all the blank space on the desktop have', 'help' => 'What color should all the blank space on the desktop have',
'#FFFFFF', 'default' => '#ffffff',
7, 'size'=>'7',
7, 'xmlrpc' => False,
'', 'admin' => False
false
), ),
'showLogo' => array( 'showLogo' => array(
'type' => 'select', 'type' => 'select',
'Show logo\'s on the desktop.', 'label' => 'Show logo\'s on the desktop.',
'showLogo', 'name' => 'showLogo',
$showLogo, 'help' => 'Show the logo\'s of eGroupware and x-desktop on the desktop.',
'Show the logo\'s of eGroupware and x-desktop on the desktop.' 'values' => $showLogo,
), 'xmlrpc' => False,
'bgcolor_icons' => array( 'admin' => False
'type' => 'input',
'Choose a background color for the icons',
'bgcolor_icons',
'',
'#FFFFFF',
7,
7,
'',
false
),
'back_icons' => array(
'type' => 'select',
'Transparant bg for the icons?',
'back_icons',
$back_icons,
''
),
'textcolor_icons' => array(
'type' => 'input',
'Choose a text color for the icons',
'textcolor_icons',
'',
'#FFFFFF',
7,
7,
'',
false
), ),
'show_generation_time' => array( 'show_generation_time' => array(
'type' => 'check', 'type' => 'check',
'Show page generation time?', 'label' => 'Show page generation time',
'show_generation_time', 'name' => 'show_generation_time',
'Would you like to display the page generation time at the bottom of every window?' 'help' => 'Show page generation time on the bottom of the page?',
'xmlrpc' => False,
'admin' => False
),
'bgcolor_icons' => array(
'type' => 'input',
'label' => 'Choose a background color for the icons',
'name' => 'bgcolor_icons',
'default'=> '#ffffff',
'size'=>'15',
),
'back_icons' => array(
'type' => 'select',
'label'=> 'Transparant bg for the icons?',
'name'=> 'back_icons',
'values'=> $back_icons,
),
'textcolor_icons' => array(
'type' => 'input',
'label'=>'Choose a text color for the icons',
'name'=>'textcolor_icons',
'default'=>'#FFFFFF',
'size'=>'15'
),
'show_generation_time' => array(
'type' => 'check',
'label'=>'Show page generation time?',
'name'=>'show_generation_time',
'help'=>'Would you like to display the page generation time at the bottom of every window?'
), ),
'scrWidth' => array( 'scrWidth' => array(
'type' => 'input', 'type' => 'input',
'Default width for the windows', 'label'=>'Default width for the windows',
'scrWidth', 'name'=>'scrWidth',
'Select the default width for the application windows', 'help'=>'Select the default width for the application windows',
'',
'',
'',
'',
false
), ),
'scrHeight' => array( 'scrHeight' => array(
'type' => 'input', 'type' => 'input',
'Default height for the windows', 'label'=>'Default height for the windows',
'scrHeight', 'name'=>'scrHeight',
'Select the default height for the application windows', 'help'=>'Select the default height for the application windows',
'',
'',
'',
'',
false
) )
); );