From 8f7a05544e89e2b7cef69f48a8ac616ed40eac37 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 3 Jun 2015 08:44:44 +0000 Subject: [PATCH] Add mail integration calendar action into preview toolbar --- mail/inc/class.mail_ui.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index bded545dd6..912fad0151 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -1449,6 +1449,10 @@ class mail_ui { unset($actions['tracker']); } + if (!isset($GLOBALS['egw_info']['user']['apps']['calendar'])) + { + unset($actions['calendar']); + } return $actions; } @@ -1701,7 +1705,7 @@ class mail_ui function get_toolbar_actions() { $actions = $this->get_actions(); - $arrActions = array('composeasnew','reply','reply_all','forward','flagged','delete','print','infolog','tracker','save','view'); + $arrActions = array('composeasnew','reply','reply_all','forward','flagged','delete','print','infolog','tracker','calendar','save','view'); foreach( $arrActions as &$act) { //error_log(__METHOD__.__LINE__.' '.$act.'->'.array2string($actions[$act]));