From 6dfc3ef819b311c665c5b403e5fe011e63b68687 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 12 Feb 2014 21:46:27 +0000 Subject: [PATCH] Add Stylite's file a file dialog to menu, if available --- filemanager/inc/class.filemanager_hooks.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/filemanager/inc/class.filemanager_hooks.inc.php b/filemanager/inc/class.filemanager_hooks.inc.php index 8b6d61d825..6ec20cb069 100644 --- a/filemanager/inc/class.filemanager_hooks.inc.php +++ b/filemanager/inc/class.filemanager_hooks.inc.php @@ -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) {