Add Stylite's file a file dialog to menu, if available

This commit is contained in:
Nathan Gray 2014-02-12 21:46:27 +00:00
parent 153c4b7e8d
commit 6dfc3ef819

View File

@ -54,6 +54,18 @@ class filemanager_hooks
{
$title = $GLOBALS['egw_info']['apps'][self::$appname]['title'] . ' '. lang('Menu');
$file = array();
if($GLOBALS['egw_info']['apps']['stylite'])
{
// add "file a file" (upload) dialog
$file[] = array(
'text' => 'File a file',
'link' => "javascript:egw_openWindowCentered2('".egw::link('/index.php',array(
'menuaction'=>'stylite.stylite_filemanager.upload',
),false)."','_blank',550,350)",
'app' => 'phpgwapi',
'icon' => 'upload',
);
}
// add selection for available views, if we have more then one
if (count(filemanager_ui::init_views()) > 1)
{