diff --git a/filemanager/inc/class.filemanager_hooks.inc.php b/filemanager/inc/class.filemanager_hooks.inc.php index efef777d67..dd246320d5 100644 --- a/filemanager/inc/class.filemanager_hooks.inc.php +++ b/filemanager/inc/class.filemanager_hooks.inc.php @@ -202,6 +202,37 @@ class filemanager_hooks 'forced' => 'yes', ), ); + // Import / Export for nextmatch + if ($GLOBALS['egw_info']['user']['apps']['importexport']) + { + $definitions = new importexport_definitions_bo(array( + 'type' => 'export', + 'application' => 'filemanager' + )); + $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; } }