From: Tim Otten Date: Wed, 1 Dec 2021 00:43:26 +0000 (-0800) Subject: mixin/setting-php - Convert live settings from `hook_alterSettingsFolder` to `` X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e6159eb57f08d7dafc76d98cdb46c1df2a4d26b0;p=civicrm-core.git mixin/setting-php - Convert live settings from `hook_alterSettingsFolder` to `` --- diff --git a/ext/authx/authx.civix.php b/ext/authx/authx.civix.php index a1ab61ebe3..4b04407a04 100644 --- a/ext/authx/authx.civix.php +++ b/ext/authx/authx.civix.php @@ -453,18 +453,6 @@ function _authx_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) { } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _authx_civix_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - $settingsDir = __DIR__ . DIRECTORY_SEPARATOR . 'settings'; - if (!in_array($settingsDir, $metaDataFolders) && is_dir($settingsDir)) { - $metaDataFolders[] = $settingsDir; - } -} - /** * (Delegated) Implements hook_civicrm_entityTypes(). * diff --git a/ext/authx/authx.php b/ext/authx/authx.php index 95fd219557..caeb87a240 100644 --- a/ext/authx/authx.php +++ b/ext/authx/authx.php @@ -187,15 +187,6 @@ function authx_civicrm_angularModules(&$angularModules) { _authx_civix_civicrm_angularModules($angularModules); } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function authx_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _authx_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/authx/info.xml b/ext/authx/info.xml index 3e22c78d22..4671767aa7 100644 --- a/ext/authx/info.xml +++ b/ext/authx/info.xml @@ -24,6 +24,9 @@ + + setting-php@1.0.0 + CRM/Authx diff --git a/ext/eventcart/eventcart.civix.php b/ext/eventcart/eventcart.civix.php index 482ac73bf6..5edecee4bb 100644 --- a/ext/eventcart/eventcart.civix.php +++ b/ext/eventcart/eventcart.civix.php @@ -453,18 +453,6 @@ function _eventcart_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _eventcart_civix_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - $settingsDir = __DIR__ . DIRECTORY_SEPARATOR . 'settings'; - if (!in_array($settingsDir, $metaDataFolders) && is_dir($settingsDir)) { - $metaDataFolders[] = $settingsDir; - } -} - /** * (Delegated) Implements hook_civicrm_entityTypes(). * diff --git a/ext/eventcart/eventcart.php b/ext/eventcart/eventcart.php index 9fac71ca98..dc6cc16085 100644 --- a/ext/eventcart/eventcart.php +++ b/ext/eventcart/eventcart.php @@ -112,15 +112,6 @@ function eventcart_civicrm_angularModules(&$angularModules) { _eventcart_civix_civicrm_angularModules($angularModules); } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function eventcart_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _eventcart_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/eventcart/info.xml b/ext/eventcart/info.xml index 2997c0cba7..831f41616b 100644 --- a/ext/eventcart/info.xml +++ b/ext/eventcart/info.xml @@ -24,6 +24,9 @@ + + setting-php@1.0.0 + CRM/Event/Cart diff --git a/ext/financialacls/financialacls.civix.php b/ext/financialacls/financialacls.civix.php index 2f5da65961..b2ec591983 100644 --- a/ext/financialacls/financialacls.civix.php +++ b/ext/financialacls/financialacls.civix.php @@ -453,18 +453,6 @@ function _financialacls_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $paren } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _financialacls_civix_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - $settingsDir = __DIR__ . DIRECTORY_SEPARATOR . 'settings'; - if (!in_array($settingsDir, $metaDataFolders) && is_dir($settingsDir)) { - $metaDataFolders[] = $settingsDir; - } -} - /** * (Delegated) Implements hook_civicrm_entityTypes(). * diff --git a/ext/financialacls/financialacls.php b/ext/financialacls/financialacls.php index c36fcdc0ac..1e41643e5c 100644 --- a/ext/financialacls/financialacls.php +++ b/ext/financialacls/financialacls.php @@ -125,15 +125,6 @@ function financialacls_civicrm_angularModules(&$angularModules) { _financialacls_civix_civicrm_angularModules($angularModules); } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function financialacls_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _financialacls_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/financialacls/info.xml b/ext/financialacls/info.xml index 3f1427846e..b1916528ee 100644 --- a/ext/financialacls/info.xml +++ b/ext/financialacls/info.xml @@ -27,6 +27,9 @@ + + setting-php@1.0.0 + CRM/Financialacls diff --git a/ext/flexmailer/flexmailer.civix.php b/ext/flexmailer/flexmailer.civix.php index 9fb3aa28e3..8381aa79df 100644 --- a/ext/flexmailer/flexmailer.civix.php +++ b/ext/flexmailer/flexmailer.civix.php @@ -453,18 +453,6 @@ function _flexmailer_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _flexmailer_civix_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - $settingsDir = __DIR__ . DIRECTORY_SEPARATOR . 'settings'; - if (!in_array($settingsDir, $metaDataFolders) && is_dir($settingsDir)) { - $metaDataFolders[] = $settingsDir; - } -} - /** * (Delegated) Implements hook_civicrm_entityTypes(). * diff --git a/ext/flexmailer/flexmailer.php b/ext/flexmailer/flexmailer.php index f8850486f7..d6b7f68499 100644 --- a/ext/flexmailer/flexmailer.php +++ b/ext/flexmailer/flexmailer.php @@ -112,15 +112,6 @@ function flexmailer_civicrm_angularModules(&$angularModules) { _flexmailer_civix_civicrm_angularModules($angularModules); } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_alterSettingsFolders - */ -function flexmailer_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _flexmailer_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_navigationMenu(). * diff --git a/ext/flexmailer/info.xml b/ext/flexmailer/info.xml index e6ff044660..db31eb1809 100644 --- a/ext/flexmailer/info.xml +++ b/ext/flexmailer/info.xml @@ -28,6 +28,9 @@ + + setting-php@1.0.0 + CRM/Flexmailer diff --git a/ext/oauth-client/info.xml b/ext/oauth-client/info.xml index 4e03aac1f5..9458ed9f12 100644 --- a/ext/oauth-client/info.xml +++ b/ext/oauth-client/info.xml @@ -29,6 +29,9 @@ CRM_OAuth_Upgrader + + setting-php@1.0.0 + CRM/OAuth diff --git a/ext/oauth-client/oauth_client.civix.php b/ext/oauth-client/oauth_client.civix.php index 0347786a07..305b176ec7 100644 --- a/ext/oauth-client/oauth_client.civix.php +++ b/ext/oauth-client/oauth_client.civix.php @@ -429,18 +429,6 @@ function _oauth_client_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parent } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _oauth_client_civix_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - $settingsDir = __DIR__ . DIRECTORY_SEPARATOR . 'settings'; - if (!in_array($settingsDir, $metaDataFolders) && is_dir($settingsDir)) { - $metaDataFolders[] = $settingsDir; - } -} - /** * (Delegated) Implements hook_civicrm_entityTypes(). * diff --git a/ext/oauth-client/oauth_client.php b/ext/oauth-client/oauth_client.php index 91bd0f85e5..ef2ac35426 100644 --- a/ext/oauth-client/oauth_client.php +++ b/ext/oauth-client/oauth_client.php @@ -92,15 +92,6 @@ function oauth_client_civicrm_angularModules(&$angularModules) { _oauth_client_civix_civicrm_angularModules($angularModules); } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function oauth_client_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _oauth_client_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/recaptcha/info.xml b/ext/recaptcha/info.xml index a94f7c74fb..8e9f7e99ed 100644 --- a/ext/recaptcha/info.xml +++ b/ext/recaptcha/info.xml @@ -24,6 +24,9 @@ + + setting-php@1.0.0 + CRM/Recaptcha diff --git a/ext/recaptcha/recaptcha.civix.php b/ext/recaptcha/recaptcha.civix.php index 53696864e2..4d8e95cb59 100644 --- a/ext/recaptcha/recaptcha.civix.php +++ b/ext/recaptcha/recaptcha.civix.php @@ -453,18 +453,6 @@ function _recaptcha_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _recaptcha_civix_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - $settingsDir = __DIR__ . DIRECTORY_SEPARATOR . 'settings'; - if (!in_array($settingsDir, $metaDataFolders) && is_dir($settingsDir)) { - $metaDataFolders[] = $settingsDir; - } -} - /** * (Delegated) Implements hook_civicrm_entityTypes(). * diff --git a/ext/recaptcha/recaptcha.php b/ext/recaptcha/recaptcha.php index 9cad89a71c..d13931a26a 100644 --- a/ext/recaptcha/recaptcha.php +++ b/ext/recaptcha/recaptcha.php @@ -103,15 +103,6 @@ function recaptcha_civicrm_angularModules(&$angularModules) { _recaptcha_civix_civicrm_angularModules($angularModules); } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function recaptcha_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _recaptcha_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/sequentialcreditnotes/info.xml b/ext/sequentialcreditnotes/info.xml index dbdc66e9ee..2b1a062c42 100644 --- a/ext/sequentialcreditnotes/info.xml +++ b/ext/sequentialcreditnotes/info.xml @@ -23,6 +23,9 @@ 5.24 + + setting-php@1.0.0 + CRM/Sequentialcreditnotes diff --git a/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php b/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php index 891a0c069c..70e1e94703 100644 --- a/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php +++ b/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php @@ -452,18 +452,6 @@ function _sequentialcreditnotes_civix_fixNavigationMenuItems(&$nodes, &$maxNavID } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _sequentialcreditnotes_civix_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - $settingsDir = __DIR__ . DIRECTORY_SEPARATOR; - if (!in_array($settingsDir, $metaDataFolders) && is_dir($settingsDir)) { - $metaDataFolders[] = $settingsDir; - } -} - /** * (Delegated) Implements hook_civicrm_entityTypes(). * diff --git a/ext/sequentialcreditnotes/sequentialcreditnotes.php b/ext/sequentialcreditnotes/sequentialcreditnotes.php index 4e84a7676c..efb3d3cd38 100644 --- a/ext/sequentialcreditnotes/sequentialcreditnotes.php +++ b/ext/sequentialcreditnotes/sequentialcreditnotes.php @@ -3,15 +3,6 @@ require_once 'sequentialcreditnotes.civix.php'; use Civi\Api4\Contribution; -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function sequentialcreditnotes_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _sequentialcreditnotes_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Add a creditnote_id if appropriate. *