1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- declare(strict_types = 1);
- namespace Plugin\EmailNotifications;
- use App\Core\Event;
- use App\Core\Modules\Plugin;
- class EmailNotifications extends Plugin
- {
- public function onAddNotificationTransport(&$form_defs): bool
- {
- $form_defs['Email'] = $form_defs['placeholder'];
- $form_defs['Email'][] = $form_defs['placeholder']['save']('Email', 'save_email');
- unset($form_defs['Email']['post_on_status_change']);
- return Event::next;
- }
- }
|