Show link to define imports | exports in sidebox for apps that support it

This commit is contained in:
Nathan Gray 2011-03-24 15:17:59 +00:00
parent 89905fe2e8
commit e12406b486

View File

@ -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);
}
}