mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
Add preference to use import/export definition for exporting from nextmatch
This commit is contained in:
parent
2e5144b5a2
commit
54a93e0480
@ -400,6 +400,38 @@ class infolog_hooks
|
||||
'admin' => False,
|
||||
);
|
||||
}
|
||||
|
||||
// Import / Export for nextmatch
|
||||
if ($GLOBALS['egw_info']['user']['apps']['importexport'])
|
||||
{
|
||||
$definitions = new importexport_definitions_bo(array(
|
||||
'type' => 'export',
|
||||
'application' => 'infolog'
|
||||
));
|
||||
$options = array();
|
||||
foreach ((array)$definitions->get_definitions() as $identifier) {
|
||||
try {
|
||||
$definition = new importexport_definition($identifier);
|
||||
} catch (Exception $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 definitition to use for nextmatch export',
|
||||
'name' => 'nextmatch-export-definition',
|
||||
'help' => lang('If you specify an export definition, it will be used when you export'),
|
||||
'run_lang' => false,
|
||||
'xmlrpc' => True,
|
||||
'admin' => False,
|
||||
);
|
||||
}
|
||||
return $settings;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user