From 61d6ca60e5d87b2ee92675883e4ce98b7a69c3b9 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 30 Nov 2021 17:27:28 -0800 Subject: [PATCH] mixin/setting-php - Remove unused boilerplate --- ext/afform/admin/afform_admin.civix.php | 12 ------------ ext/afform/admin/afform_admin.php | 9 --------- ext/afform/core/afform.civix.php | 12 ------------ ext/afform/core/afform.php | 9 --------- ext/afform/html/afform_html.civix.php | 12 ------------ ext/afform/html/afform_html.php | 9 --------- ext/afform/mock/afform_mock.civix.php | 12 ------------ ext/afform/mock/afform_mock.php | 9 --------- ext/ckeditor4/ckeditor4.civix.php | 12 ------------ ext/ckeditor4/ckeditor4.php | 9 --------- .../contributioncancelactions.civix.php | 12 ------------ ext/ewaysingle/ewaysingle.civix.php | 12 ------------ ext/ewaysingle/ewaysingle.php | 9 --------- ext/greenwich/greenwich.civix.php | 12 ------------ ext/greenwich/greenwich.php | 9 --------- .../legacycustomsearches.civix.php | 12 ------------ ext/legacycustomsearches/legacycustomsearches.php | 9 --------- ext/message_admin/message_admin.civix.php | 12 ------------ ext/message_admin/message_admin.php | 9 --------- ext/payflowpro/payflowpro.civix.php | 12 ------------ ext/payflowpro/payflowpro.php | 9 --------- ext/search_kit/search_kit.civix.php | 12 ------------ ext/search_kit/search_kit.php | 9 --------- 23 files changed, 243 deletions(-) diff --git a/ext/afform/admin/afform_admin.civix.php b/ext/afform/admin/afform_admin.civix.php index 1a1fcfc28e..efe670e81b 100644 --- a/ext/afform/admin/afform_admin.civix.php +++ b/ext/afform/admin/afform_admin.civix.php @@ -429,18 +429,6 @@ function _afform_admin_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parent } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _afform_admin_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/afform/admin/afform_admin.php b/ext/afform/admin/afform_admin.php index 9799e8e91b..e6ac80f2a6 100644 --- a/ext/afform/admin/afform_admin.php +++ b/ext/afform/admin/afform_admin.php @@ -114,15 +114,6 @@ function afform_admin_civicrm_angularModules(&$angularModules) { _afform_admin_civix_civicrm_angularModules($angularModules); } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_alterSettingsFolders - */ -function afform_admin_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _afform_admin_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/afform/core/afform.civix.php b/ext/afform/core/afform.civix.php index 1a10bb02d0..f3be327dc4 100644 --- a/ext/afform/core/afform.civix.php +++ b/ext/afform/core/afform.civix.php @@ -429,18 +429,6 @@ function _afform_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) { } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _afform_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/afform/core/afform.php b/ext/afform/core/afform.php index 72a152feb3..8b73fa2c31 100644 --- a/ext/afform/core/afform.php +++ b/ext/afform/core/afform.php @@ -321,15 +321,6 @@ function _afform_get_partials($moduleName, $module) { ]; } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_alterSettingsFolders - */ -function afform_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _afform_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/afform/html/afform_html.civix.php b/ext/afform/html/afform_html.civix.php index eb663989c5..1ee617cadc 100644 --- a/ext/afform/html/afform_html.civix.php +++ b/ext/afform/html/afform_html.civix.php @@ -429,18 +429,6 @@ function _afform_html_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentI } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _afform_html_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/afform/html/afform_html.php b/ext/afform/html/afform_html.php index 0b75ec68d2..5e86331827 100644 --- a/ext/afform/html/afform_html.php +++ b/ext/afform/html/afform_html.php @@ -118,15 +118,6 @@ function afform_html_civicrm_angularModules(&$angularModules) { _afform_html_civix_civicrm_angularModules($angularModules); } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_alterSettingsFolders - */ -function afform_html_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _afform_html_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/afform/mock/afform_mock.civix.php b/ext/afform/mock/afform_mock.civix.php index 37f7875270..d4cbe5d5e6 100644 --- a/ext/afform/mock/afform_mock.civix.php +++ b/ext/afform/mock/afform_mock.civix.php @@ -429,18 +429,6 @@ function _afform_mock_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentI } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _afform_mock_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/afform/mock/afform_mock.php b/ext/afform/mock/afform_mock.php index 578aed00f9..901d222294 100644 --- a/ext/afform/mock/afform_mock.php +++ b/ext/afform/mock/afform_mock.php @@ -114,15 +114,6 @@ function afform_mock_civicrm_angularModules(&$angularModules) { _afform_mock_civix_civicrm_angularModules($angularModules); } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_alterSettingsFolders - */ -function afform_mock_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _afform_mock_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/ckeditor4/ckeditor4.civix.php b/ext/ckeditor4/ckeditor4.civix.php index aa0b6e5f49..c8b5ef266c 100644 --- a/ext/ckeditor4/ckeditor4.civix.php +++ b/ext/ckeditor4/ckeditor4.civix.php @@ -429,18 +429,6 @@ function _ckeditor4_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _ckeditor4_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/ckeditor4/ckeditor4.php b/ext/ckeditor4/ckeditor4.php index 1823176d60..3b87f383cb 100644 --- a/ext/ckeditor4/ckeditor4.php +++ b/ext/ckeditor4/ckeditor4.php @@ -116,15 +116,6 @@ function ckeditor4_civicrm_angularModules(&$angularModules) { _ckeditor4_civix_civicrm_angularModules($angularModules); } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function ckeditor4_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _ckeditor4_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/contributioncancelactions/contributioncancelactions.civix.php b/ext/contributioncancelactions/contributioncancelactions.civix.php index 14754302b5..89c3ceae03 100644 --- a/ext/contributioncancelactions/contributioncancelactions.civix.php +++ b/ext/contributioncancelactions/contributioncancelactions.civix.php @@ -453,18 +453,6 @@ function _contributioncancelactions_civix_fixNavigationMenuItems(&$nodes, &$maxN } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _contributioncancelactions_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/ewaysingle/ewaysingle.civix.php b/ext/ewaysingle/ewaysingle.civix.php index 2a71b5bdba..6073417bc4 100644 --- a/ext/ewaysingle/ewaysingle.civix.php +++ b/ext/ewaysingle/ewaysingle.civix.php @@ -453,18 +453,6 @@ function _ewaysingle_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _ewaysingle_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/ewaysingle/ewaysingle.php b/ext/ewaysingle/ewaysingle.php index d3f2932d6a..4e023df09d 100644 --- a/ext/ewaysingle/ewaysingle.php +++ b/ext/ewaysingle/ewaysingle.php @@ -116,15 +116,6 @@ function ewaysingle_civicrm_angularModules(&$angularModules) { _ewaysingle_civix_civicrm_angularModules($angularModules); } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function ewaysingle_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _ewaysingle_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/greenwich/greenwich.civix.php b/ext/greenwich/greenwich.civix.php index 45a6619d00..57ff1e7e34 100644 --- a/ext/greenwich/greenwich.civix.php +++ b/ext/greenwich/greenwich.civix.php @@ -453,18 +453,6 @@ function _greenwich_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _greenwich_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/greenwich/greenwich.php b/ext/greenwich/greenwich.php index 3f4ffc0b89..bfe81d58f7 100644 --- a/ext/greenwich/greenwich.php +++ b/ext/greenwich/greenwich.php @@ -23,15 +23,6 @@ function greenwich_civicrm_config(&$config) { // _greenwich_civix_civicrm_xmlMenu($files); //} -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function greenwich_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _greenwich_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_themes(). */ diff --git a/ext/legacycustomsearches/legacycustomsearches.civix.php b/ext/legacycustomsearches/legacycustomsearches.civix.php index b1a7c1b60f..f8f5ec5ecb 100644 --- a/ext/legacycustomsearches/legacycustomsearches.civix.php +++ b/ext/legacycustomsearches/legacycustomsearches.civix.php @@ -429,18 +429,6 @@ function _legacycustomsearches_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _legacycustomsearches_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/legacycustomsearches/legacycustomsearches.php b/ext/legacycustomsearches/legacycustomsearches.php index 1f61ff6224..4326856707 100644 --- a/ext/legacycustomsearches/legacycustomsearches.php +++ b/ext/legacycustomsearches/legacycustomsearches.php @@ -116,15 +116,6 @@ function legacycustomsearches_civicrm_angularModules(&$angularModules) { _legacycustomsearches_civix_civicrm_angularModules($angularModules); } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function legacycustomsearches_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _legacycustomsearches_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/message_admin/message_admin.civix.php b/ext/message_admin/message_admin.civix.php index d030462a2f..d665c618f0 100644 --- a/ext/message_admin/message_admin.civix.php +++ b/ext/message_admin/message_admin.civix.php @@ -429,18 +429,6 @@ function _message_admin_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $paren } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _message_admin_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/message_admin/message_admin.php b/ext/message_admin/message_admin.php index 851e1fac48..4efd0b74fb 100644 --- a/ext/message_admin/message_admin.php +++ b/ext/message_admin/message_admin.php @@ -116,15 +116,6 @@ function message_admin_civicrm_angularModules(&$angularModules) { _message_admin_civix_civicrm_angularModules($angularModules); } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function message_admin_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _message_admin_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/payflowpro/payflowpro.civix.php b/ext/payflowpro/payflowpro.civix.php index 5a368a2711..3637df1a94 100644 --- a/ext/payflowpro/payflowpro.civix.php +++ b/ext/payflowpro/payflowpro.civix.php @@ -453,18 +453,6 @@ function _payflowpro_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _payflowpro_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/payflowpro/payflowpro.php b/ext/payflowpro/payflowpro.php index 68dc914e2e..2fd782b375 100644 --- a/ext/payflowpro/payflowpro.php +++ b/ext/payflowpro/payflowpro.php @@ -116,15 +116,6 @@ function payflowpro_civicrm_angularModules(&$angularModules) { _payflowpro_civix_civicrm_angularModules($angularModules); } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function payflowpro_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _payflowpro_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/search_kit/search_kit.civix.php b/ext/search_kit/search_kit.civix.php index 9ed76d9214..fa2b1660c3 100644 --- a/ext/search_kit/search_kit.civix.php +++ b/ext/search_kit/search_kit.civix.php @@ -429,18 +429,6 @@ function _search_kit_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID } } -/** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function _search_kit_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/search_kit/search_kit.php b/ext/search_kit/search_kit.php index c37d3e5c48..50fb6085ae 100644 --- a/ext/search_kit/search_kit.php +++ b/ext/search_kit/search_kit.php @@ -90,15 +90,6 @@ function search_kit_civicrm_angularModules(&$angularModules) { } } -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders - */ -function search_kit_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _search_kit_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_entityTypes(). * -- 2.25.1