. // }}} /** * 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\Module; class EmailNotifications extends Module { public function onAddNotificationTransport(&$form_defs): bool { $form_defs['email'] = $form_defs['placeholder']; unset($form_defs['email']['post_on_status_change']); return Event::next; } }