. // }}} /** * Handle xmpp 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\XMPPNotifications; use App\Core\Event; use App\Core\Modules\Plugin; class XMPPNotifications extends Plugin { public function onAddNotificationTransport(&$form_defs): bool { $form_defs['XMPP'] = $form_defs['placeholder']; $form_defs['XMPP'][] = $form_defs['placeholder']['save']('XMPP', 'save_xmpp'); return Event::next; } }