Addressbook - Remove obsolete preference "Export definition to use for nextmatch export"

This commit is contained in:
nathangray 2019-07-10 14:15:52 -06:00
parent 27307169c1
commit d0b5d50b0f

View File

@ -321,44 +321,6 @@ class addressbook_hooks
// Import / Export for nextmatch // Import / Export for nextmatch
if ($GLOBALS['egw_info']['user']['apps']['importexport']) if ($GLOBALS['egw_info']['user']['apps']['importexport'])
{ {
$definitions = new importexport_definitions_bo(array(
'type' => 'export',
'application' => 'addressbook'
));
$options = array(
'~nextmatch~' => lang('Old fixed definition')
);
$default_def = 'export-addressbook';
foreach ((array)$definitions->get_definitions() as $identifier)
{
try
{
$definition = new importexport_definition($identifier);
}
catch (Exception $e)
{
unset($e);
// permission error
continue;
}
if (($title = $definition->get_title()))
{
$options[$title] = $title;
}
unset($definition);
}
$settings['nextmatch-export-definition'] = array(
'type' => 'select',
'values' => $options,
'label' => 'Export definition to use for nextmatch export',
'name' => 'nextmatch-export-definition',
'help' => 'If you specify an export definition, it will be used when you export',
'run_lang' => false,
'xmlrpc' => True,
'admin' => False,
'default'=> isset($options[$default_def]) ? $default_def : false,
);
$settings['vcard_charset'] = array( $settings['vcard_charset'] = array(
'type' => 'select', 'type' => 'select',
'label' => 'Charset for the vCard import and export', 'label' => 'Charset for the vCard import and export',