mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Show link to define imports | exports in sidebox for apps that support it
This commit is contained in:
parent
89905fe2e8
commit
e12406b486
@ -122,6 +122,15 @@ class importexport_admin_prefs_sidebox_hooks
|
||||
'text' => 'export'
|
||||
);
|
||||
}
|
||||
$config = config::read('importexport');
|
||||
if($appname != 'admin' && ($config['users_create_definitions'] || $GLOBALS['egw_info']['user']['apps']['admin']) &&
|
||||
count(importexport_helper_functions::get_plugins($appname)) > 0
|
||||
)
|
||||
{
|
||||
$file['Define imports|exports'] = egw::link('/index.php',array(
|
||||
'menuaction' => 'importexport.importexport_definitions_ui.index',
|
||||
));
|
||||
}
|
||||
if($file) display_sidebox($appname,lang('importexport'),$file);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user