new helpdesk module

This commit is contained in:
Mark Gregory
2026-06-12 09:41:57 +01:00
parent 67c9bb22d9
commit da35c7eb95
50 changed files with 1874 additions and 270 deletions
+6 -5
View File
@@ -1,12 +1,13 @@
<?php
use Modules\Helpdesk\Support\ModuleInfo;
if (! function_exists('helpdesk_feature_enabled')) {
declare(strict_types=1);
if (! function_exists('helpdesk_module_name')) {
/**
* Check if a feature is enabled in the config.
* Return the Helpdesk module name.
*/
function helpdesk_feature_enabled(string $key): bool
function helpdesk_module_name(): string
{
return (bool) config(ModuleInfo::nameLower().".features.{$key}", false);
return 'Helpdesk';
}
}