mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Add trigger before insertNotify so that notifications can be canceled
This commit is contained in:
parent
e60fab4969
commit
0263f63e41
1 changed files with 6 additions and 0 deletions
|
|
@ -1103,6 +1103,12 @@ class ncenterliteController extends ncenterlite
|
||||||
$args->target_email_address = '';
|
$args->target_email_address = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$trigger_output = ModuleHandler::triggerCall('ncenterlite._insertNotify', 'before', $args);
|
||||||
|
if(!$trigger_output->toBool() || $trigger_output->getMessage() === 'cancel')
|
||||||
|
{
|
||||||
|
return $trigger_output;
|
||||||
|
}
|
||||||
|
|
||||||
$output = executeQuery('ncenterlite.insertNotify', $args);
|
$output = executeQuery('ncenterlite.insertNotify', $args);
|
||||||
if($output->toBool())
|
if($output->toBool())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue