mixin/setting-php - Convert live settings from `hook_alterSettingsFolder` to `<mixin>`
authorTim Otten <totten@civicrm.org>
Wed, 1 Dec 2021 00:43:26 +0000 (16:43 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 1 Dec 2021 03:36:08 +0000 (19:36 -0800)
21 files changed:
ext/authx/authx.civix.php
ext/authx/authx.php
ext/authx/info.xml
ext/eventcart/eventcart.civix.php
ext/eventcart/eventcart.php
ext/eventcart/info.xml
ext/financialacls/financialacls.civix.php
ext/financialacls/financialacls.php
ext/financialacls/info.xml
ext/flexmailer/flexmailer.civix.php
ext/flexmailer/flexmailer.php
ext/flexmailer/info.xml
ext/oauth-client/info.xml
ext/oauth-client/oauth_client.civix.php
ext/oauth-client/oauth_client.php
ext/recaptcha/info.xml
ext/recaptcha/recaptcha.civix.php
ext/recaptcha/recaptcha.php
ext/sequentialcreditnotes/info.xml
ext/sequentialcreditnotes/sequentialcreditnotes.civix.php
ext/sequentialcreditnotes/sequentialcreditnotes.php

index a1ab61ebe325a62639731e81822a1f9bdb3637cd..4b04407a0494e37ea4c914e1504b538c218e8eb9 100644 (file)
@@ -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().
  *
index 95fd219557b8a725f4f1d7367051701f05f2b720..caeb87a240ffa95b3e38b8feba63108afbf16e30 100644 (file)
@@ -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().
  *
index 3e22c78d22391300d85f00f799c6817c9413b764..4671767aa7b46078120bfeedb0b43f3731478908 100644 (file)
@@ -24,6 +24,9 @@
   <classloader>
     <psr4 prefix="Civi\" path="Civi"/>
   </classloader>
+  <mixins>
+    <mixin>setting-php@1.0.0</mixin>
+  </mixins>
   <civix>
     <namespace>CRM/Authx</namespace>
   </civix>
index 482ac73bf65eb5d652d272e64f04974250350969..5edecee4bba1c818fe0a0a4afe9d8e6c91eb4330 100644 (file)
@@ -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().
  *
index 9fac71ca9847e27b6fb7c668f2a725c48b602047..dc6cc1608524353760c9426a60c3a7779bace721 100644 (file)
@@ -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().
  *
index 2997c0cba7181d930d86bea252239c48d3b6b4e4..831f41616b650d3d9a6ef54c33ba51534cb20fc6 100644 (file)
@@ -24,6 +24,9 @@
   <classloader>
     <psr4 prefix="Civi\" path="Civi"/>
   </classloader>
+  <mixins>
+    <mixin>setting-php@1.0.0</mixin>
+  </mixins>
   <civix>
     <namespace>CRM/Event/Cart</namespace>
   </civix>
index 2f5da65961871ba28bb8e0f1a97a376226fa9aa2..b2ec591983d4fbfbe5a9e401c131e046762eb702 100644 (file)
@@ -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().
  *
index c36fcdc0ac26cc7ed8bb11a73207d6a9c9b86b2e..1e41643e5c4d925b375d18787a65e0f0af053500 100644 (file)
@@ -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().
  *
index 3f1427846e8b384bb669f181231b5f1f0ee6460f..b1916528ee379a211552c89ad15490a0675d40e9 100644 (file)
@@ -27,6 +27,9 @@
   <classloader>
     <psr4 prefix="Civi\" path="Civi"/>
   </classloader>
+  <mixins>
+    <mixin>setting-php@1.0.0</mixin>
+  </mixins>
   <civix>
     <namespace>CRM/Financialacls</namespace>
   </civix>
index 9fb3aa28e31cedc92717cba31543abeddf0e689e..8381aa79df3b05e9b1be35ed59e1329ddd79e083 100644 (file)
@@ -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().
  *
index f8850486f760a282c6ca2caddb5c387a8f6d510c..d6b7f68499ef7562a10acb5cbc515aacc6f3c7e7 100644 (file)
@@ -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().
  *
index e6ff04466089f5a3ee3c106eaf7169e23613a94a..db31eb1809f45b5d2f03e105801f6b95e8f33e8b 100644 (file)
@@ -28,6 +28,9 @@
   <classloader>
     <psr4 prefix="Civi\FlexMailer\" path="src"/>
   </classloader>
+  <mixins>
+    <mixin>setting-php@1.0.0</mixin>
+  </mixins>
   <civix>
     <namespace>CRM/Flexmailer</namespace>
   </civix>
index 4e03aac1f56326725b74d87bca7fb2dd282b6519..9458ed9f12287c8bd79e832c288cf0230ed76ff4 100644 (file)
@@ -29,6 +29,9 @@
     <psr4 prefix="Civi\" path="Civi"/>
   </classloader>
   <upgrader>CRM_OAuth_Upgrader</upgrader>
+  <mixins>
+    <mixin>setting-php@1.0.0</mixin>
+  </mixins>
   <civix>
     <namespace>CRM/OAuth</namespace>
   </civix>
index 0347786a07a057c5ac4584d938cb7bfcd2c72168..305b176ec74b0daac6018163a04b3631f2d84321 100644 (file)
@@ -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().
  *
index 91bd0f85e534f42beb65eb7d2d7d82755b4dc0d3..ef2ac3542641ea5a11b778080599d356cacb0b7c 100644 (file)
@@ -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().
  *
index a94f7c74fbfc81a8ba1f78c2a391073883e4ba68..8e9f7e99ed466e00696ec23d68540248b3f9eb27 100644 (file)
@@ -24,6 +24,9 @@
   <classloader>
     <psr4 prefix="Civi\" path="Civi"/>
   </classloader>
+  <mixins>
+    <mixin>setting-php@1.0.0</mixin>
+  </mixins>
   <civix>
     <namespace>CRM/Recaptcha</namespace>
   </civix>
index 53696864e20c440fcfc73b19da54ad4c3c1fb499..4d8e95cb5914cc85319af0d0c6dc38258a55094c 100644 (file)
@@ -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().
  *
index 9cad89a71c7498de787295fbac63e5ae8ea2dd90..d13931a26afff553a053c029db5ccc0ebdd66bd1 100644 (file)
@@ -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().
  *
index dbdc66e9eeca75ba65ae0ecaeb06996980e73a4c..2b1a062c428ab7e5d3c3ed4c9bf28edd94a55ef4 100644 (file)
@@ -23,6 +23,9 @@
   <compatibility>
     <ver>5.24</ver>
   </compatibility>
+  <mixins>
+    <mixin>setting-php@1.0.0</mixin>
+  </mixins>
   <civix>
     <namespace>CRM/Sequentialcreditnotes</namespace>
   </civix>
index 891a0c069c78c9401f572235ffe8f1fba20a4c78..70e1e947037aeacee89075808772e24f0dde9c4e 100644 (file)
@@ -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().
  *
index 4e84a7676cdf54f18a73d996be8c50a311f7792f..efb3d3cd380a219c1c79c5e1ccc236a50a08a191 100644 (file)
@@ -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.
  *