Add mail integration calendar action into preview toolbar

This commit is contained in:
Hadi Nategh 2015-06-03 08:45:25 +00:00
parent eb9289f441
commit d770bc9784

View File

@ -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]));