From fb6e7e22aaa0d8e8cae2dd04967ce0d7e30609ec Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 2 Dec 2021 13:30:21 -0800 Subject: [PATCH] mixin/mgd-php - Remove unused boilerplate --- ext/afform/html/afform_html.civix.php | 24 ------------------- ext/afform/html/afform_html.php | 12 ---------- ext/afform/mock/afform_mock.civix.php | 24 ------------------- ext/afform/mock/afform_mock.php | 12 ---------- ext/authx/authx.civix.php | 24 ------------------- ext/authx/authx.php | 12 ---------- ext/ckeditor4/ckeditor4.civix.php | 24 ------------------- ext/ckeditor4/ckeditor4.php | 12 ---------- .../contributioncancelactions.civix.php | 24 ------------------- ext/eventcart/eventcart.civix.php | 24 ------------------- ext/eventcart/eventcart.php | 12 ---------- ext/financialacls/financialacls.civix.php | 24 ------------------- ext/financialacls/financialacls.php | 12 ---------- ext/flexmailer/flexmailer.civix.php | 24 ------------------- ext/flexmailer/flexmailer.php | 12 ---------- ext/greenwich/greenwich.civix.php | 24 ------------------- .../legacycustomsearches.civix.php | 24 ------------------- .../legacycustomsearches.php | 12 ---------- ext/message_admin/message_admin.civix.php | 24 ------------------- ext/message_admin/message_admin.php | 12 ---------- ext/oauth-client/oauth_client.civix.php | 24 ------------------- ext/oauth-client/oauth_client.php | 12 ---------- ext/recaptcha/recaptcha.civix.php | 24 ------------------- ext/recaptcha/recaptcha.php | 12 ---------- .../sequentialcreditnotes.civix.php | 24 ------------------- 25 files changed, 468 deletions(-) diff --git a/ext/afform/html/afform_html.civix.php b/ext/afform/html/afform_html.civix.php index 8587866506..8346be57bb 100644 --- a/ext/afform/html/afform_html.civix.php +++ b/ext/afform/html/afform_html.civix.php @@ -220,30 +220,6 @@ function _afform_html_civix_find_files($dir, $pattern) { return CRM_Utils_File::findFiles($dir, $pattern); } -/** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function _afform_html_civix_civicrm_managed(&$entities) { - $mgdFiles = _afform_html_civix_find_files(__DIR__, '*.mgd.php'); - sort($mgdFiles); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = E::LONG_NAME; - } - if (empty($e['params']['version'])) { - $e['params']['version'] = '3'; - } - $entities[] = $e; - } - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/afform/html/afform_html.php b/ext/afform/html/afform_html.php index db5f2cde0c..4410f3eb17 100644 --- a/ext/afform/html/afform_html.php +++ b/ext/afform/html/afform_html.php @@ -70,18 +70,6 @@ function afform_html_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { return _afform_html_civix_civicrm_upgrade($op, $queue); } -/** - * Implements hook_civicrm_managed(). - * - * Generate a list of entities to create/deactivate/delete when this module - * is installed, disabled, uninstalled. - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_managed - */ -function afform_html_civicrm_managed(&$entities) { - _afform_html_civix_civicrm_managed($entities); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/afform/mock/afform_mock.civix.php b/ext/afform/mock/afform_mock.civix.php index 0d4f945952..94e72d125b 100644 --- a/ext/afform/mock/afform_mock.civix.php +++ b/ext/afform/mock/afform_mock.civix.php @@ -220,30 +220,6 @@ function _afform_mock_civix_find_files($dir, $pattern) { return CRM_Utils_File::findFiles($dir, $pattern); } -/** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function _afform_mock_civix_civicrm_managed(&$entities) { - $mgdFiles = _afform_mock_civix_find_files(__DIR__, '*.mgd.php'); - sort($mgdFiles); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = E::LONG_NAME; - } - if (empty($e['params']['version'])) { - $e['params']['version'] = '3'; - } - $entities[] = $e; - } - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/afform/mock/afform_mock.php b/ext/afform/mock/afform_mock.php index a055eaf531..3f6d87a1a9 100644 --- a/ext/afform/mock/afform_mock.php +++ b/ext/afform/mock/afform_mock.php @@ -66,18 +66,6 @@ function afform_mock_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { return _afform_mock_civix_civicrm_upgrade($op, $queue); } -/** - * Implements hook_civicrm_managed(). - * - * Generate a list of entities to create/deactivate/delete when this module - * is installed, disabled, uninstalled. - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_managed - */ -function afform_mock_civicrm_managed(&$entities) { - _afform_mock_civix_civicrm_managed($entities); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/authx/authx.civix.php b/ext/authx/authx.civix.php index 8125d3e527..2fc5297751 100644 --- a/ext/authx/authx.civix.php +++ b/ext/authx/authx.civix.php @@ -244,30 +244,6 @@ function _authx_civix_find_files($dir, $pattern) { return $result; } -/** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function _authx_civix_civicrm_managed(&$entities) { - $mgdFiles = _authx_civix_find_files(__DIR__, '*.mgd.php'); - sort($mgdFiles); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = E::LONG_NAME; - } - if (empty($e['params']['version'])) { - $e['params']['version'] = '3'; - } - $entities[] = $e; - } - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/authx/authx.php b/ext/authx/authx.php index c700178fdb..a30dcede14 100644 --- a/ext/authx/authx.php +++ b/ext/authx/authx.php @@ -139,18 +139,6 @@ function authx_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { return _authx_civix_civicrm_upgrade($op, $queue); } -/** - * Implements hook_civicrm_managed(). - * - * Generate a list of entities to create/deactivate/delete when this module - * is installed, disabled, uninstalled. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function authx_civicrm_managed(&$entities) { - _authx_civix_civicrm_managed($entities); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/ckeditor4/ckeditor4.civix.php b/ext/ckeditor4/ckeditor4.civix.php index cfb03f2d53..5d9d03a354 100644 --- a/ext/ckeditor4/ckeditor4.civix.php +++ b/ext/ckeditor4/ckeditor4.civix.php @@ -220,30 +220,6 @@ function _ckeditor4_civix_find_files($dir, $pattern) { return CRM_Utils_File::findFiles($dir, $pattern); } -/** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function _ckeditor4_civix_civicrm_managed(&$entities) { - $mgdFiles = _ckeditor4_civix_find_files(__DIR__, '*.mgd.php'); - sort($mgdFiles); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = E::LONG_NAME; - } - if (empty($e['params']['version'])) { - $e['params']['version'] = '3'; - } - $entities[] = $e; - } - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/ckeditor4/ckeditor4.php b/ext/ckeditor4/ckeditor4.php index b598220941..cdd366c94d 100644 --- a/ext/ckeditor4/ckeditor4.php +++ b/ext/ckeditor4/ckeditor4.php @@ -68,18 +68,6 @@ function ckeditor4_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { return _ckeditor4_civix_civicrm_upgrade($op, $queue); } -/** - * Implements hook_civicrm_managed(). - * - * Generate a list of entities to create/deactivate/delete when this module - * is installed, disabled, uninstalled. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function ckeditor4_civicrm_managed(&$entities) { - _ckeditor4_civix_civicrm_managed($entities); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/contributioncancelactions/contributioncancelactions.civix.php b/ext/contributioncancelactions/contributioncancelactions.civix.php index dcb56704f5..d3ff573644 100644 --- a/ext/contributioncancelactions/contributioncancelactions.civix.php +++ b/ext/contributioncancelactions/contributioncancelactions.civix.php @@ -244,30 +244,6 @@ function _contributioncancelactions_civix_find_files($dir, $pattern) { return $result; } -/** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function _contributioncancelactions_civix_civicrm_managed(&$entities) { - $mgdFiles = _contributioncancelactions_civix_find_files(__DIR__, '*.mgd.php'); - sort($mgdFiles); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = E::LONG_NAME; - } - if (empty($e['params']['version'])) { - $e['params']['version'] = '3'; - } - $entities[] = $e; - } - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/eventcart/eventcart.civix.php b/ext/eventcart/eventcart.civix.php index 0cc09318f9..1e39846858 100644 --- a/ext/eventcart/eventcart.civix.php +++ b/ext/eventcart/eventcart.civix.php @@ -244,30 +244,6 @@ function _eventcart_civix_find_files($dir, $pattern) { return $result; } -/** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function _eventcart_civix_civicrm_managed(&$entities) { - $mgdFiles = _eventcart_civix_find_files(__DIR__, '*.mgd.php'); - sort($mgdFiles); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = E::LONG_NAME; - } - if (empty($e['params']['version'])) { - $e['params']['version'] = '3'; - } - $entities[] = $e; - } - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/eventcart/eventcart.php b/ext/eventcart/eventcart.php index 29c45df29d..d160a35861 100644 --- a/ext/eventcart/eventcart.php +++ b/ext/eventcart/eventcart.php @@ -77,18 +77,6 @@ function eventcart_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { return _eventcart_civix_civicrm_upgrade($op, $queue); } -/** - * Implements hook_civicrm_managed(). - * - * Generate a list of entities to create/deactivate/delete when this module - * is installed, disabled, uninstalled. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function eventcart_civicrm_managed(&$entities) { - _eventcart_civix_civicrm_managed($entities); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/financialacls/financialacls.civix.php b/ext/financialacls/financialacls.civix.php index 116ff63a2b..ef2feab939 100644 --- a/ext/financialacls/financialacls.civix.php +++ b/ext/financialacls/financialacls.civix.php @@ -244,30 +244,6 @@ function _financialacls_civix_find_files($dir, $pattern) { return $result; } -/** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function _financialacls_civix_civicrm_managed(&$entities) { - $mgdFiles = _financialacls_civix_find_files(__DIR__, '*.mgd.php'); - sort($mgdFiles); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = E::LONG_NAME; - } - if (empty($e['params']['version'])) { - $e['params']['version'] = '3'; - } - $entities[] = $e; - } - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/financialacls/financialacls.php b/ext/financialacls/financialacls.php index c49dbd9f71..bbbbd9c52f 100644 --- a/ext/financialacls/financialacls.php +++ b/ext/financialacls/financialacls.php @@ -77,18 +77,6 @@ function financialacls_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { return _financialacls_civix_civicrm_upgrade($op, $queue); } -/** - * Implements hook_civicrm_managed(). - * - * Generate a list of entities to create/deactivate/delete when this module - * is installed, disabled, uninstalled. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function financialacls_civicrm_managed(&$entities) { - _financialacls_civix_civicrm_managed($entities); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/flexmailer/flexmailer.civix.php b/ext/flexmailer/flexmailer.civix.php index 5b82503256..7fbacec16b 100644 --- a/ext/flexmailer/flexmailer.civix.php +++ b/ext/flexmailer/flexmailer.civix.php @@ -244,30 +244,6 @@ function _flexmailer_civix_find_files($dir, $pattern) { return $result; } -/** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function _flexmailer_civix_civicrm_managed(&$entities) { - $mgdFiles = _flexmailer_civix_find_files(__DIR__, '*.mgd.php'); - sort($mgdFiles); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = E::LONG_NAME; - } - if (empty($e['params']['version'])) { - $e['params']['version'] = '3'; - } - $entities[] = $e; - } - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/flexmailer/flexmailer.php b/ext/flexmailer/flexmailer.php index 387edf3514..bf3047f427 100644 --- a/ext/flexmailer/flexmailer.php +++ b/ext/flexmailer/flexmailer.php @@ -77,18 +77,6 @@ function flexmailer_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { return _flexmailer_civix_civicrm_upgrade($op, $queue); } -/** - * Implements hook_civicrm_managed(). - * - * Generate a list of entities to create/deactivate/delete when this module - * is installed, disabled, uninstalled. - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_managed - */ -function flexmailer_civicrm_managed(&$entities) { - _flexmailer_civix_civicrm_managed($entities); -} - /** * Implements hook_civicrm_navigationMenu(). * diff --git a/ext/greenwich/greenwich.civix.php b/ext/greenwich/greenwich.civix.php index b91d069f13..71b4aa8246 100644 --- a/ext/greenwich/greenwich.civix.php +++ b/ext/greenwich/greenwich.civix.php @@ -244,30 +244,6 @@ function _greenwich_civix_find_files($dir, $pattern) { return $result; } -/** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function _greenwich_civix_civicrm_managed(&$entities) { - $mgdFiles = _greenwich_civix_find_files(__DIR__, '*.mgd.php'); - sort($mgdFiles); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = E::LONG_NAME; - } - if (empty($e['params']['version'])) { - $e['params']['version'] = '3'; - } - $entities[] = $e; - } - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/legacycustomsearches/legacycustomsearches.civix.php b/ext/legacycustomsearches/legacycustomsearches.civix.php index 0f3227e2f9..ab14d17e47 100644 --- a/ext/legacycustomsearches/legacycustomsearches.civix.php +++ b/ext/legacycustomsearches/legacycustomsearches.civix.php @@ -220,30 +220,6 @@ function _legacycustomsearches_civix_find_files($dir, $pattern) { return CRM_Utils_File::findFiles($dir, $pattern); } -/** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function _legacycustomsearches_civix_civicrm_managed(&$entities) { - $mgdFiles = _legacycustomsearches_civix_find_files(__DIR__, '*.mgd.php'); - sort($mgdFiles); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = E::LONG_NAME; - } - if (empty($e['params']['version'])) { - $e['params']['version'] = '3'; - } - $entities[] = $e; - } - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/legacycustomsearches/legacycustomsearches.php b/ext/legacycustomsearches/legacycustomsearches.php index 5930519a4d..2213da60d3 100644 --- a/ext/legacycustomsearches/legacycustomsearches.php +++ b/ext/legacycustomsearches/legacycustomsearches.php @@ -68,18 +68,6 @@ function legacycustomsearches_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL return _legacycustomsearches_civix_civicrm_upgrade($op, $queue); } -/** - * Implements hook_civicrm_managed(). - * - * Generate a list of entities to create/deactivate/delete when this module - * is installed, disabled, uninstalled. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function legacycustomsearches_civicrm_managed(&$entities) { - _legacycustomsearches_civix_civicrm_managed($entities); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/message_admin/message_admin.civix.php b/ext/message_admin/message_admin.civix.php index d3eb343f48..ad642c3542 100644 --- a/ext/message_admin/message_admin.civix.php +++ b/ext/message_admin/message_admin.civix.php @@ -220,30 +220,6 @@ function _message_admin_civix_find_files($dir, $pattern) { return CRM_Utils_File::findFiles($dir, $pattern); } -/** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function _message_admin_civix_civicrm_managed(&$entities) { - $mgdFiles = _message_admin_civix_find_files(__DIR__, '*.mgd.php'); - sort($mgdFiles); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = E::LONG_NAME; - } - if (empty($e['params']['version'])) { - $e['params']['version'] = '3'; - } - $entities[] = $e; - } - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/message_admin/message_admin.php b/ext/message_admin/message_admin.php index 97fbac4b67..9135d05bec 100644 --- a/ext/message_admin/message_admin.php +++ b/ext/message_admin/message_admin.php @@ -68,18 +68,6 @@ function message_admin_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { return _message_admin_civix_civicrm_upgrade($op, $queue); } -/** - * Implements hook_civicrm_managed(). - * - * Generate a list of entities to create/deactivate/delete when this module - * is installed, disabled, uninstalled. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function message_admin_civicrm_managed(&$entities) { - _message_admin_civix_civicrm_managed($entities); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/oauth-client/oauth_client.civix.php b/ext/oauth-client/oauth_client.civix.php index bfc3966695..747f5cc086 100644 --- a/ext/oauth-client/oauth_client.civix.php +++ b/ext/oauth-client/oauth_client.civix.php @@ -220,30 +220,6 @@ function _oauth_client_civix_find_files($dir, $pattern) { return CRM_Utils_File::findFiles($dir, $pattern); } -/** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function _oauth_client_civix_civicrm_managed(&$entities) { - $mgdFiles = _oauth_client_civix_find_files(__DIR__, '*.mgd.php'); - sort($mgdFiles); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = E::LONG_NAME; - } - if (empty($e['params']['version'])) { - $e['params']['version'] = '3'; - } - $entities[] = $e; - } - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/oauth-client/oauth_client.php b/ext/oauth-client/oauth_client.php index de44ad2682..a4d6e1592d 100644 --- a/ext/oauth-client/oauth_client.php +++ b/ext/oauth-client/oauth_client.php @@ -14,18 +14,6 @@ function oauth_client_civicrm_config(&$config) { _oauth_client_civix_civicrm_config($config); } -/** - * Implements hook_civicrm_managed(). - * - * Generate a list of entities to create/deactivate/delete when this module - * is installed, disabled, uninstalled. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function oauth_client_civicrm_managed(&$entities) { - _oauth_client_civix_civicrm_managed($entities); -} - /** * Implements hook_civicrm_permission(). * diff --git a/ext/recaptcha/recaptcha.civix.php b/ext/recaptcha/recaptcha.civix.php index 6a7b39390d..1d534a651c 100644 --- a/ext/recaptcha/recaptcha.civix.php +++ b/ext/recaptcha/recaptcha.civix.php @@ -244,30 +244,6 @@ function _recaptcha_civix_find_files($dir, $pattern) { return $result; } -/** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function _recaptcha_civix_civicrm_managed(&$entities) { - $mgdFiles = _recaptcha_civix_find_files(__DIR__, '*.mgd.php'); - sort($mgdFiles); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = E::LONG_NAME; - } - if (empty($e['params']['version'])) { - $e['params']['version'] = '3'; - } - $entities[] = $e; - } - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/recaptcha/recaptcha.php b/ext/recaptcha/recaptcha.php index eae2c32424..467ff84cc6 100644 --- a/ext/recaptcha/recaptcha.php +++ b/ext/recaptcha/recaptcha.php @@ -68,18 +68,6 @@ function recaptcha_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { return _recaptcha_civix_civicrm_upgrade($op, $queue); } -/** - * Implements hook_civicrm_managed(). - * - * Generate a list of entities to create/deactivate/delete when this module - * is installed, disabled, uninstalled. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function recaptcha_civicrm_managed(&$entities) { - _recaptcha_civix_civicrm_managed($entities); -} - /** * Implements hook_civicrm_entityTypes(). * diff --git a/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php b/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php index 9b14848c8e..d228996729 100644 --- a/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php +++ b/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php @@ -243,30 +243,6 @@ function _sequentialcreditnotes_civix_find_files($dir, $pattern) { return $result; } -/** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed - */ -function _sequentialcreditnotes_civix_civicrm_managed(&$entities) { - $mgdFiles = _sequentialcreditnotes_civix_find_files(__DIR__, '*.mgd.php'); - sort($mgdFiles); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = E::LONG_NAME; - } - if (empty($e['params']['version'])) { - $e['params']['version'] = '3'; - } - $entities[] = $e; - } - } -} - /** * Glob wrapper which is guaranteed to return an array. * -- 2.25.1