/** Datei: plugins/messages/hooks/generator/columns.php **/ type.messages", function( array $config ) { return array_replace_recursive( $config, [ "icon" => "bi-send", "options" => Messages\Type::getAll(), ]); }); /** Datei: plugins/messages/hooks/init.php **/ * @copyright 2025 ARUNOX * @version 1.0.0 * @since 1.0.0 File is created */ use ARUNOX\Core\Hooks; use ARUNOX\Plugins\Messages; Hooks::add('public::api->init', [ Messages\API\v1\Routes::class, "register" ] ); /** Datei: plugins/messages/hooks/config.php **/ * @copyright 2025 ARUNOX * @version 1.0.0 * @since 1.0.0 File is created */ use ARUNOX\Core\Hooks; use ARUNOX\Plugins\REST; use ARUNOX\Plugins\Settings; // Hooks::add('config::constants', function() { // define( "TEMPLATE_CONSTANT", Hooks::filter( 'config::constants->TEMPLATE_CONSTANT', FALSE ) ); // }); // // Hooks::add( 'config::constants.type->TEMPLATE_CONSTANT', function( $type ) { return Settings\Type::Unknown; }); Hooks::add( 'messages.identifier::options', function( $options ) { $options[6] = [ "color" => REST\Generator\Config\Color::Danger, "label" => "TEST", "icon" => "bi bi-house-fill" ]; return $options; });