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