Add mail integration calendar action into preview toolbar

This commit is contained in:
Hadi Nategh 2015-06-03 08:44:44 +00:00
parent 3908b46079
commit 8f7a05544e

View File

@ -1449,6 +1449,10 @@ class mail_ui
{ {
unset($actions['tracker']); unset($actions['tracker']);
} }
if (!isset($GLOBALS['egw_info']['user']['apps']['calendar']))
{
unset($actions['calendar']);
}
return $actions; return $actions;
} }
@ -1701,7 +1705,7 @@ class mail_ui
function get_toolbar_actions() function get_toolbar_actions()
{ {
$actions = $this->get_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) foreach( $arrActions as &$act)
{ {
//error_log(__METHOD__.__LINE__.' '.$act.'->'.array2string($actions[$act])); //error_log(__METHOD__.__LINE__.' '.$act.'->'.array2string($actions[$act]));