From: Tim Otten Date: Wed, 1 Dec 2021 02:54:36 +0000 (-0800) Subject: mixin/menu-xml - Remove unused boilerplate X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4eaff19ce188f7f9a043cc97e70b387f7962079f;p=civicrm-core.git mixin/menu-xml - Remove unused boilerplate --- diff --git a/ext/afform/core/afform.civix.php b/ext/afform/core/afform.civix.php index e48a4e8fed..4f0d862d2f 100644 --- a/ext/afform/core/afform.civix.php +++ b/ext/afform/core/afform.civix.php @@ -107,19 +107,6 @@ function _afform_civix_civicrm_config(&$config = NULL) { set_include_path($include_path); } -/** - * (Delegated) Implements hook_civicrm_xmlMenu(). - * - * @param $files array(string) - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu - */ -function _afform_civix_civicrm_xmlMenu(&$files) { - foreach (_afform_civix_glob(__DIR__ . '/xml/Menu/*.xml') as $file) { - $files[] = $file; - } -} - /** * Implements hook_civicrm_install(). * diff --git a/ext/afform/core/afform.php b/ext/afform/core/afform.php index a6913a0722..0438defda5 100644 --- a/ext/afform/core/afform.php +++ b/ext/afform/core/afform.php @@ -63,15 +63,6 @@ function afform_civicrm_config(&$config) { } } -/** - * Implements hook_civicrm_xmlMenu(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_xmlMenu - */ -function afform_civicrm_xmlMenu(&$files) { - _afform_civix_civicrm_xmlMenu($files); -} - /** * Implements hook_civicrm_install(). * diff --git a/ext/afform/html/afform_html.civix.php b/ext/afform/html/afform_html.civix.php index 18f4ce47b9..d7dc9f5f12 100644 --- a/ext/afform/html/afform_html.civix.php +++ b/ext/afform/html/afform_html.civix.php @@ -107,19 +107,6 @@ function _afform_html_civix_civicrm_config(&$config = NULL) { set_include_path($include_path); } -/** - * (Delegated) Implements hook_civicrm_xmlMenu(). - * - * @param $files array(string) - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu - */ -function _afform_html_civix_civicrm_xmlMenu(&$files) { - foreach (_afform_html_civix_glob(__DIR__ . '/xml/Menu/*.xml') as $file) { - $files[] = $file; - } -} - /** * Implements hook_civicrm_install(). * diff --git a/ext/afform/html/afform_html.php b/ext/afform/html/afform_html.php index 7df54c2a98..0a6fd6e82b 100644 --- a/ext/afform/html/afform_html.php +++ b/ext/afform/html/afform_html.php @@ -16,15 +16,6 @@ function afform_html_civicrm_config(&$config) { _afform_html_civix_civicrm_config($config); } -/** - * Implements hook_civicrm_xmlMenu(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_xmlMenu - */ -function afform_html_civicrm_xmlMenu(&$files) { - _afform_html_civix_civicrm_xmlMenu($files); -} - /** * Implements hook_civicrm_install(). * diff --git a/ext/afform/mock/afform_mock.civix.php b/ext/afform/mock/afform_mock.civix.php index 79f952ad91..b608ef4f59 100644 --- a/ext/afform/mock/afform_mock.civix.php +++ b/ext/afform/mock/afform_mock.civix.php @@ -107,19 +107,6 @@ function _afform_mock_civix_civicrm_config(&$config = NULL) { set_include_path($include_path); } -/** - * (Delegated) Implements hook_civicrm_xmlMenu(). - * - * @param $files array(string) - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu - */ -function _afform_mock_civix_civicrm_xmlMenu(&$files) { - foreach (_afform_mock_civix_glob(__DIR__ . '/xml/Menu/*.xml') as $file) { - $files[] = $file; - } -} - /** * Implements hook_civicrm_install(). * diff --git a/ext/afform/mock/afform_mock.php b/ext/afform/mock/afform_mock.php index 6c05d79b1c..d75baf2aa6 100644 --- a/ext/afform/mock/afform_mock.php +++ b/ext/afform/mock/afform_mock.php @@ -12,15 +12,6 @@ function afform_mock_civicrm_config(&$config) { _afform_mock_civix_civicrm_config($config); } -/** - * Implements hook_civicrm_xmlMenu(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_xmlMenu - */ -function afform_mock_civicrm_xmlMenu(&$files) { - _afform_mock_civix_civicrm_xmlMenu($files); -} - /** * Implements hook_civicrm_install(). * diff --git a/ext/contributioncancelactions/contributioncancelactions.civix.php b/ext/contributioncancelactions/contributioncancelactions.civix.php index 69313e5f1f..dcb56704f5 100644 --- a/ext/contributioncancelactions/contributioncancelactions.civix.php +++ b/ext/contributioncancelactions/contributioncancelactions.civix.php @@ -107,19 +107,6 @@ function _contributioncancelactions_civix_civicrm_config(&$config = NULL) { set_include_path($include_path); } -/** - * (Delegated) Implements hook_civicrm_xmlMenu(). - * - * @param $files array(string) - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu - */ -function _contributioncancelactions_civix_civicrm_xmlMenu(&$files) { - foreach (_contributioncancelactions_civix_glob(__DIR__ . '/xml/Menu/*.xml') as $file) { - $files[] = $file; - } -} - /** * Implements hook_civicrm_install(). * diff --git a/ext/ewaysingle/ewaysingle.civix.php b/ext/ewaysingle/ewaysingle.civix.php index a587829375..e09f39bfc2 100644 --- a/ext/ewaysingle/ewaysingle.civix.php +++ b/ext/ewaysingle/ewaysingle.civix.php @@ -107,19 +107,6 @@ function _ewaysingle_civix_civicrm_config(&$config = NULL) { set_include_path($include_path); } -/** - * (Delegated) Implements hook_civicrm_xmlMenu(). - * - * @param $files array(string) - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu - */ -function _ewaysingle_civix_civicrm_xmlMenu(&$files) { - foreach (_ewaysingle_civix_glob(__DIR__ . '/xml/Menu/*.xml') as $file) { - $files[] = $file; - } -} - /** * Implements hook_civicrm_install(). * diff --git a/ext/ewaysingle/ewaysingle.php b/ext/ewaysingle/ewaysingle.php index b3bda414eb..a1be18b892 100644 --- a/ext/ewaysingle/ewaysingle.php +++ b/ext/ewaysingle/ewaysingle.php @@ -14,15 +14,6 @@ function ewaysingle_civicrm_config(&$config) { _ewaysingle_civix_civicrm_config($config); } -/** - * Implements hook_civicrm_xmlMenu(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu - */ -function ewaysingle_civicrm_xmlMenu(&$files) { - _ewaysingle_civix_civicrm_xmlMenu($files); -} - /** * Implements hook_civicrm_install(). * diff --git a/ext/financialacls/financialacls.civix.php b/ext/financialacls/financialacls.civix.php index 06f74243e4..116ff63a2b 100644 --- a/ext/financialacls/financialacls.civix.php +++ b/ext/financialacls/financialacls.civix.php @@ -107,19 +107,6 @@ function _financialacls_civix_civicrm_config(&$config = NULL) { set_include_path($include_path); } -/** - * (Delegated) Implements hook_civicrm_xmlMenu(). - * - * @param $files array(string) - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu - */ -function _financialacls_civix_civicrm_xmlMenu(&$files) { - foreach (_financialacls_civix_glob(__DIR__ . '/xml/Menu/*.xml') as $file) { - $files[] = $file; - } -} - /** * Implements hook_civicrm_install(). * diff --git a/ext/financialacls/financialacls.php b/ext/financialacls/financialacls.php index ca017b72f6..c49dbd9f71 100644 --- a/ext/financialacls/financialacls.php +++ b/ext/financialacls/financialacls.php @@ -23,15 +23,6 @@ function financialacls_civicrm_container($container) { $dispatcherDefn->addMethodCall('addListener', ['civi.api4.authorizeRecord::Contribution', '_financialacls_civi_api4_authorizeContribution']); } -/** - * Implements hook_civicrm_xmlMenu(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu - */ -function financialacls_civicrm_xmlMenu(&$files) { - _financialacls_civix_civicrm_xmlMenu($files); -} - /** * Implements hook_civicrm_install(). * diff --git a/ext/greenwich/greenwich.civix.php b/ext/greenwich/greenwich.civix.php index 4bea8401bf..b91d069f13 100644 --- a/ext/greenwich/greenwich.civix.php +++ b/ext/greenwich/greenwich.civix.php @@ -107,19 +107,6 @@ function _greenwich_civix_civicrm_config(&$config = NULL) { set_include_path($include_path); } -/** - * (Delegated) Implements hook_civicrm_xmlMenu(). - * - * @param $files array(string) - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu - */ -function _greenwich_civix_civicrm_xmlMenu(&$files) { - foreach (_greenwich_civix_glob(__DIR__ . '/xml/Menu/*.xml') as $file) { - $files[] = $file; - } -} - /** * Implements hook_civicrm_install(). * diff --git a/ext/greenwich/greenwich.php b/ext/greenwich/greenwich.php index 767fe36f24..5a0fa917ad 100644 --- a/ext/greenwich/greenwich.php +++ b/ext/greenwich/greenwich.php @@ -14,15 +14,6 @@ function greenwich_civicrm_config(&$config) { _greenwich_civix_civicrm_config($config); } -///** -// * Implements hook_civicrm_xmlMenu(). -// * -// * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu -// */ -//function greenwich_civicrm_xmlMenu(&$files) { -// _greenwich_civix_civicrm_xmlMenu($files); -//} - /** * Implements hook_civicrm_themes(). */ diff --git a/ext/payflowpro/payflowpro.civix.php b/ext/payflowpro/payflowpro.civix.php index be171be39d..e8653c1e20 100644 --- a/ext/payflowpro/payflowpro.civix.php +++ b/ext/payflowpro/payflowpro.civix.php @@ -107,19 +107,6 @@ function _payflowpro_civix_civicrm_config(&$config = NULL) { set_include_path($include_path); } -/** - * (Delegated) Implements hook_civicrm_xmlMenu(). - * - * @param $files array(string) - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu - */ -function _payflowpro_civix_civicrm_xmlMenu(&$files) { - foreach (_payflowpro_civix_glob(__DIR__ . '/xml/Menu/*.xml') as $file) { - $files[] = $file; - } -} - /** * Implements hook_civicrm_install(). * diff --git a/ext/payflowpro/payflowpro.php b/ext/payflowpro/payflowpro.php index ce9fb9a4cc..561f59dec1 100644 --- a/ext/payflowpro/payflowpro.php +++ b/ext/payflowpro/payflowpro.php @@ -14,15 +14,6 @@ function payflowpro_civicrm_config(&$config) { _payflowpro_civix_civicrm_config($config); } -/** - * Implements hook_civicrm_xmlMenu(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu - */ -function payflowpro_civicrm_xmlMenu(&$files) { - _payflowpro_civix_civicrm_xmlMenu($files); -} - /** * Implements hook_civicrm_install(). * diff --git a/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php b/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php index dbffde5c95..9b14848c8e 100644 --- a/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php +++ b/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php @@ -107,19 +107,6 @@ function _sequentialcreditnotes_civix_civicrm_config(&$config = NULL) { set_include_path($include_path); } -/** - * (Delegated) Implements hook_civicrm_xmlMenu(). - * - * @param $files array(string) - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu - */ -function _sequentialcreditnotes_civix_civicrm_xmlMenu(&$files) { - foreach (_sequentialcreditnotes_civix_glob(__DIR__ . '/xml/Menu/*.xml') as $file) { - $files[] = $file; - } -} - /** * Implements hook_civicrm_install(). *