. // }}} /** * Handle email notifications * * @package GNUsocial * @category Plugin * * @author Hugo Sales * @copyright 2020-2021 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ namespace Plugin\EmailNotifications; use App\Core\Event; use App\Core\Modules\Plugin; use EventResult; class EmailNotifications extends Plugin { public function onAddNotificationTransport(&$form_defs): EventResult { $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; } }