From d770bc97841974ed94bb6adb4784134181ef89d1 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 3 Jun 2015 08:45:25 +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 3fca55103e..427763f372 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -1436,6 +1436,10 @@ class mail_ui { unset($actions['tracker']); } + if (!isset($GLOBALS['egw_info']['user']['apps']['calendar'])) + { + unset($actions['calendar']); + } return $actions; } @@ -1688,7 +1692,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]));