mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-15 18:38:57 +01:00
"fixing settings hook to run under setup (for default and forced prefs - not yet set)"
This commit is contained in:
parent
5408924afb
commit
3c3c988851
@ -106,9 +106,10 @@ class addressbook_hooks
|
|||||||
/**
|
/**
|
||||||
* populates $settings for the preferences
|
* populates $settings for the preferences
|
||||||
*
|
*
|
||||||
|
* @param array|string $hook_data
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
static function settings()
|
static function settings($hook_data)
|
||||||
{
|
{
|
||||||
$settings = array();
|
$settings = array();
|
||||||
$settings['add_default'] = array(
|
$settings['add_default'] = array(
|
||||||
@ -116,7 +117,7 @@ class addressbook_hooks
|
|||||||
'label' => 'Default addressbook for adding contacts',
|
'label' => 'Default addressbook for adding contacts',
|
||||||
'name' => 'add_default',
|
'name' => 'add_default',
|
||||||
'help' => 'Which addressbook should be selected when adding a contact AND you have no add rights to the current addressbook.',
|
'help' => 'Which addressbook should be selected when adding a contact AND you have no add rights to the current addressbook.',
|
||||||
'values' => ExecMethod('addressbook.addressbook_ui.get_addressbooks',EGW_ACL_ADD),
|
'values' => !$hook_data['setup'] ? ExecMethod('addressbook.addressbook_ui.get_addressbooks',EGW_ACL_ADD) : array(),
|
||||||
'xmlrpc' => True,
|
'xmlrpc' => True,
|
||||||
'admin' => False,
|
'admin' => False,
|
||||||
);
|
);
|
||||||
@ -164,7 +165,7 @@ class addressbook_hooks
|
|||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'label' => 'Charset for the CSV export',
|
'label' => 'Charset for the CSV export',
|
||||||
'name' => 'csv_charset',
|
'name' => 'csv_charset',
|
||||||
'values' => $GLOBALS['egw']->translation->get_installed_charsets()+array('utf-8' => 'utf-8 (Unicode)'),
|
'values' => translation::get_installed_charsets(),
|
||||||
'help' => 'Which charset should be used for the CSV export. The system default is the charset of this eGroupWare installation.',
|
'help' => 'Which charset should be used for the CSV export. The system default is the charset of this eGroupWare installation.',
|
||||||
'xmlrpc' => True,
|
'xmlrpc' => True,
|
||||||
'admin' => false,
|
'admin' => false,
|
||||||
|
Loading…
Reference in New Issue
Block a user