mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Add mail compose action for status app
This commit is contained in:
parent
4dd62db0fc
commit
a0a1326e6f
@ -693,4 +693,20 @@ class mail_hooks
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add mail related actions into status action
|
||||||
|
*
|
||||||
|
* @return array returns array of actions
|
||||||
|
*/
|
||||||
|
public static function get_status_actions ()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'mail' => [
|
||||||
|
'caption' => 'Mail',
|
||||||
|
'allowOnMultiple' => false,
|
||||||
|
'onExecute' => 'javaScript:app.status.handle_actions',
|
||||||
|
]
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,7 @@ $setup_info['mail']['hooks']['verify_settings'] = 'EGroupware\\Api\\Mail::forceP
|
|||||||
$setup_info['mail']['hooks']['clear_cache'] = 'EGroupware\\Api\\Mail::unsetCachedObjects';
|
$setup_info['mail']['hooks']['clear_cache'] = 'EGroupware\\Api\\Mail::unsetCachedObjects';
|
||||||
$setup_info['mail']['hooks']['check_notify'] = 'mail_hooks::notification_check_mailbox';
|
$setup_info['mail']['hooks']['check_notify'] = 'mail_hooks::notification_check_mailbox';
|
||||||
$setup_info['mail']['hooks']['emailadmin_edit'] = 'mail_hooks::emailadmin_edit';
|
$setup_info['mail']['hooks']['emailadmin_edit'] = 'mail_hooks::emailadmin_edit';
|
||||||
|
$setup_info['mail']['hooks']['status-get_actions'] = 'mail_hooks::get_status_actions';
|
||||||
|
|
||||||
/* Dependencies for this app to work */
|
/* Dependencies for this app to work */
|
||||||
$setup_info['mail']['depends'][] = array(
|
$setup_info['mail']['depends'][] = array(
|
||||||
|
Loading…
Reference in New Issue
Block a user