YetiForceCompany/YetiForceCRM

View on GitHub
modules/MailIntegration/ConfigTemplate.php

Summary

Maintainability
A
0 mins
Test Coverage
F
50%
<?php
/**
 * MailIntegration module config.
 *
 * @copyright YetiForce S.A.
 * @license   YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 * @author    Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
 */
return [
    'modulesListQuickCreate' => [
        'default' => [],
        'description' => 'Quick creation of records in the module list',
        'validation' => function () {
            $arg = func_get_arg(0);
            return \is_array($arg) && !array_diff($arg, App\Module::getAllModuleNames());
        }
    ],
    'outlookUrls' => [
        'default' => [],
        'description' => 'List of allowed addresses for integration with Outlook',
        'loopValidate' => true,
        'validation' => '\App\Validator::url',
    ],
];