From ce478b0d1592d8d0629dcf0a0b06667276c2b049 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 30 Nov 2021 18:30:38 -0800 Subject: [PATCH] mixin/theme-php - Remove unused boilerplate --- ext/afform/admin/afform_admin.civix.php | 19 ------------------- ext/afform/admin/afform_admin.php | 7 ------- ext/afform/core/afform.civix.php | 19 ------------------- ext/afform/core/afform.php | 7 ------- ext/afform/html/afform_html.civix.php | 19 ------------------- ext/afform/html/afform_html.php | 7 ------- ext/afform/mock/afform_mock.civix.php | 19 ------------------- ext/afform/mock/afform_mock.php | 7 ------- ext/authx/authx.civix.php | 19 ------------------- ext/authx/authx.php | 7 ------- ext/ckeditor4/ckeditor4.civix.php | 19 ------------------- ext/ckeditor4/ckeditor4.php | 7 ------- .../contributioncancelactions.civix.php | 19 ------------------- ext/eventcart/eventcart.civix.php | 19 ------------------- ext/ewaysingle/ewaysingle.civix.php | 19 ------------------- ext/ewaysingle/ewaysingle.php | 7 ------- ext/financialacls/financialacls.civix.php | 19 ------------------- ext/financialacls/financialacls.php | 7 ------- ext/flexmailer/flexmailer.civix.php | 19 ------------------- ext/greenwich/greenwich.civix.php | 19 ------------------- ext/greenwich/greenwich.php | 1 - .../legacycustomsearches.civix.php | 19 ------------------- .../legacycustomsearches.php | 7 ------- ext/message_admin/message_admin.civix.php | 19 ------------------- ext/message_admin/message_admin.php | 7 ------- ext/oauth-client/oauth_client.civix.php | 19 ------------------- ext/oauth-client/oauth_client.php | 7 ------- ext/payflowpro/payflowpro.civix.php | 19 ------------------- ext/payflowpro/payflowpro.php | 7 ------- ext/recaptcha/recaptcha.civix.php | 19 ------------------- ext/search_kit/search_kit.civix.php | 19 ------------------- ext/search_kit/search_kit.php | 7 ------- .../sequentialcreditnotes.civix.php | 19 ------------------- 33 files changed, 453 deletions(-) diff --git a/ext/afform/admin/afform_admin.civix.php b/ext/afform/admin/afform_admin.civix.php index efe670e81b..e84aeeace8 100644 --- a/ext/afform/admin/afform_admin.civix.php +++ b/ext/afform/admin/afform_admin.civix.php @@ -310,25 +310,6 @@ function _afform_admin_civix_civicrm_angularModules(&$angularModules) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _afform_admin_civix_civicrm_themes(&$themes) { - $files = _afform_admin_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/afform/admin/afform_admin.php b/ext/afform/admin/afform_admin.php index e6ac80f2a6..1a4df8dca9 100644 --- a/ext/afform/admin/afform_admin.php +++ b/ext/afform/admin/afform_admin.php @@ -124,10 +124,3 @@ function afform_admin_civicrm_angularModules(&$angularModules) { function afform_admin_civicrm_entityTypes(&$entityTypes) { _afform_admin_civix_civicrm_entityTypes($entityTypes); } - -/** - * Implements hook_civicrm_themes(). - */ -function afform_admin_civicrm_themes(&$themes) { - _afform_admin_civix_civicrm_themes($themes); -} diff --git a/ext/afform/core/afform.civix.php b/ext/afform/core/afform.civix.php index f3be327dc4..8a8e42e6a6 100644 --- a/ext/afform/core/afform.civix.php +++ b/ext/afform/core/afform.civix.php @@ -310,25 +310,6 @@ function _afform_civix_civicrm_angularModules(&$angularModules) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _afform_civix_civicrm_themes(&$themes) { - $files = _afform_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/afform/core/afform.php b/ext/afform/core/afform.php index 8b73fa2c31..a6913a0722 100644 --- a/ext/afform/core/afform.php +++ b/ext/afform/core/afform.php @@ -332,13 +332,6 @@ function afform_civicrm_entityTypes(&$entityTypes) { _afform_civix_civicrm_entityTypes($entityTypes); } -/** - * Implements hook_civicrm_themes(). - */ -function afform_civicrm_themes(&$themes) { - _afform_civix_civicrm_themes($themes); -} - /** * Implements hook_civicrm_buildAsset(). */ diff --git a/ext/afform/html/afform_html.civix.php b/ext/afform/html/afform_html.civix.php index 1ee617cadc..e472eda6c1 100644 --- a/ext/afform/html/afform_html.civix.php +++ b/ext/afform/html/afform_html.civix.php @@ -310,25 +310,6 @@ function _afform_html_civix_civicrm_angularModules(&$angularModules) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _afform_html_civix_civicrm_themes(&$themes) { - $files = _afform_html_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * 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 5e86331827..39417ecd6d 100644 --- a/ext/afform/html/afform_html.php +++ b/ext/afform/html/afform_html.php @@ -128,10 +128,3 @@ function afform_html_civicrm_angularModules(&$angularModules) { function afform_html_civicrm_entityTypes(&$entityTypes) { _afform_html_civix_civicrm_entityTypes($entityTypes); } - -/** - * Implements hook_civicrm_themes(). - */ -function afform_html_civicrm_themes(&$themes) { - _afform_html_civix_civicrm_themes($themes); -} diff --git a/ext/afform/mock/afform_mock.civix.php b/ext/afform/mock/afform_mock.civix.php index d4cbe5d5e6..3f1c656bd9 100644 --- a/ext/afform/mock/afform_mock.civix.php +++ b/ext/afform/mock/afform_mock.civix.php @@ -310,25 +310,6 @@ function _afform_mock_civix_civicrm_angularModules(&$angularModules) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _afform_mock_civix_civicrm_themes(&$themes) { - $files = _afform_mock_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * 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 901d222294..03f201be4e 100644 --- a/ext/afform/mock/afform_mock.php +++ b/ext/afform/mock/afform_mock.php @@ -124,10 +124,3 @@ function afform_mock_civicrm_angularModules(&$angularModules) { function afform_mock_civicrm_entityTypes(&$entityTypes) { _afform_mock_civix_civicrm_entityTypes($entityTypes); } - -/** - * Implements hook_civicrm_themes(). - */ -function afform_mock_civicrm_themes(&$themes) { - _afform_mock_civix_civicrm_themes($themes); -} diff --git a/ext/authx/authx.civix.php b/ext/authx/authx.civix.php index b31dff233b..a73c6aec6c 100644 --- a/ext/authx/authx.civix.php +++ b/ext/authx/authx.civix.php @@ -309,25 +309,6 @@ function _authx_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _authx_civix_civicrm_themes(&$themes) { - $files = _authx_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/authx/authx.php b/ext/authx/authx.php index 977340f7ee..b5495a4bc1 100644 --- a/ext/authx/authx.php +++ b/ext/authx/authx.php @@ -184,13 +184,6 @@ function authx_civicrm_entityTypes(&$entityTypes) { _authx_civix_civicrm_entityTypes($entityTypes); } -/** - * Implements hook_civicrm_thems(). - */ -function authx_civicrm_themes(&$themes) { - _authx_civix_civicrm_themes($themes); -} - /** * Implements hook_civicrm_permission(). * diff --git a/ext/ckeditor4/ckeditor4.civix.php b/ext/ckeditor4/ckeditor4.civix.php index d6374fd10c..714477aa8c 100644 --- a/ext/ckeditor4/ckeditor4.civix.php +++ b/ext/ckeditor4/ckeditor4.civix.php @@ -285,25 +285,6 @@ function _ckeditor4_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _ckeditor4_civix_civicrm_themes(&$themes) { - $files = _ckeditor4_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/ckeditor4/ckeditor4.php b/ext/ckeditor4/ckeditor4.php index b20f75df26..5609da5ffa 100644 --- a/ext/ckeditor4/ckeditor4.php +++ b/ext/ckeditor4/ckeditor4.php @@ -113,13 +113,6 @@ function ckeditor4_civicrm_entityTypes(&$entityTypes) { _ckeditor4_civix_civicrm_entityTypes($entityTypes); } -/** - * Implements hook_civicrm_themes(). - */ -function ckeditor4_civicrm_themes(&$themes) { - _ckeditor4_civix_civicrm_themes($themes); -} - function ckeditor4_civicrm_buildForm($formName, $form) { if ($formName === 'CRM_Admin_Form_Preferences_Display') { $form->addElement( diff --git a/ext/contributioncancelactions/contributioncancelactions.civix.php b/ext/contributioncancelactions/contributioncancelactions.civix.php index 49690e89c0..fed40ab37c 100644 --- a/ext/contributioncancelactions/contributioncancelactions.civix.php +++ b/ext/contributioncancelactions/contributioncancelactions.civix.php @@ -309,25 +309,6 @@ function _contributioncancelactions_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _contributioncancelactions_civix_civicrm_themes(&$themes) { - $files = _contributioncancelactions_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/eventcart/eventcart.civix.php b/ext/eventcart/eventcart.civix.php index d331d28740..8687987fc6 100644 --- a/ext/eventcart/eventcart.civix.php +++ b/ext/eventcart/eventcart.civix.php @@ -309,25 +309,6 @@ function _eventcart_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _eventcart_civix_civicrm_themes(&$themes) { - $files = _eventcart_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/ewaysingle/ewaysingle.civix.php b/ext/ewaysingle/ewaysingle.civix.php index f9e2ba530d..e4546a83fa 100644 --- a/ext/ewaysingle/ewaysingle.civix.php +++ b/ext/ewaysingle/ewaysingle.civix.php @@ -309,25 +309,6 @@ function _ewaysingle_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _ewaysingle_civix_civicrm_themes(&$themes) { - $files = _ewaysingle_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/ewaysingle/ewaysingle.php b/ext/ewaysingle/ewaysingle.php index 15ebfa8a49..6a56ed03e8 100644 --- a/ext/ewaysingle/ewaysingle.php +++ b/ext/ewaysingle/ewaysingle.php @@ -113,13 +113,6 @@ function ewaysingle_civicrm_entityTypes(&$entityTypes) { _ewaysingle_civix_civicrm_entityTypes($entityTypes); } -/** - * Implements hook_civicrm_thems(). - */ -function ewaysingle_civicrm_themes(&$themes) { - _ewaysingle_civix_civicrm_themes($themes); -} - // --- Functions below this ship commented out. Uncomment as required. --- /** diff --git a/ext/financialacls/financialacls.civix.php b/ext/financialacls/financialacls.civix.php index d2b2e73f27..5c01d3b6e0 100644 --- a/ext/financialacls/financialacls.civix.php +++ b/ext/financialacls/financialacls.civix.php @@ -309,25 +309,6 @@ function _financialacls_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _financialacls_civix_civicrm_themes(&$themes) { - $files = _financialacls_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/financialacls/financialacls.php b/ext/financialacls/financialacls.php index 78c2f9daee..d2fe67334d 100644 --- a/ext/financialacls/financialacls.php +++ b/ext/financialacls/financialacls.php @@ -122,13 +122,6 @@ function financialacls_civicrm_entityTypes(&$entityTypes) { _financialacls_civix_civicrm_entityTypes($entityTypes); } -/** - * Implements hook_civicrm_thems(). - */ -function financialacls_civicrm_themes(&$themes) { - _financialacls_civix_civicrm_themes($themes); -} - /** * Intervene to prevent deletion, where permissions block it. * diff --git a/ext/flexmailer/flexmailer.civix.php b/ext/flexmailer/flexmailer.civix.php index 3ec59a0231..6aa8adb5ad 100644 --- a/ext/flexmailer/flexmailer.civix.php +++ b/ext/flexmailer/flexmailer.civix.php @@ -309,25 +309,6 @@ function _flexmailer_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _flexmailer_civix_civicrm_themes(&$themes) { - $files = _flexmailer_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/greenwich/greenwich.civix.php b/ext/greenwich/greenwich.civix.php index 30cd3288e6..73e0c36186 100644 --- a/ext/greenwich/greenwich.civix.php +++ b/ext/greenwich/greenwich.civix.php @@ -309,25 +309,6 @@ function _greenwich_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _greenwich_civix_civicrm_themes(&$themes) { - $files = _greenwich_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/greenwich/greenwich.php b/ext/greenwich/greenwich.php index bfe81d58f7..767fe36f24 100644 --- a/ext/greenwich/greenwich.php +++ b/ext/greenwich/greenwich.php @@ -27,7 +27,6 @@ function greenwich_civicrm_config(&$config) { * Implements hook_civicrm_themes(). */ function greenwich_civicrm_themes(&$themes) { - // _greenwich_civix_civicrm_themes($themes); $themes['greenwich'] = [ 'ext' => 'civicrm', 'title' => 'Greenwich', diff --git a/ext/legacycustomsearches/legacycustomsearches.civix.php b/ext/legacycustomsearches/legacycustomsearches.civix.php index ebd35c6bad..1ed3bb21e8 100644 --- a/ext/legacycustomsearches/legacycustomsearches.civix.php +++ b/ext/legacycustomsearches/legacycustomsearches.civix.php @@ -285,25 +285,6 @@ function _legacycustomsearches_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _legacycustomsearches_civix_civicrm_themes(&$themes) { - $files = _legacycustomsearches_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/legacycustomsearches/legacycustomsearches.php b/ext/legacycustomsearches/legacycustomsearches.php index 81fa4b5771..949fe2f7ef 100644 --- a/ext/legacycustomsearches/legacycustomsearches.php +++ b/ext/legacycustomsearches/legacycustomsearches.php @@ -113,13 +113,6 @@ function legacycustomsearches_civicrm_entityTypes(&$entityTypes) { _legacycustomsearches_civix_civicrm_entityTypes($entityTypes); } -/** - * Implements hook_civicrm_themes(). - */ -function legacycustomsearches_civicrm_themes(&$themes) { - _legacycustomsearches_civix_civicrm_themes($themes); -} - // --- Functions below this ship commented out. Uncomment as required. --- /** diff --git a/ext/message_admin/message_admin.civix.php b/ext/message_admin/message_admin.civix.php index ee0c64c7e1..6913533e87 100644 --- a/ext/message_admin/message_admin.civix.php +++ b/ext/message_admin/message_admin.civix.php @@ -285,25 +285,6 @@ function _message_admin_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _message_admin_civix_civicrm_themes(&$themes) { - $files = _message_admin_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * 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 acca57502d..d1fa0d49cc 100644 --- a/ext/message_admin/message_admin.php +++ b/ext/message_admin/message_admin.php @@ -113,13 +113,6 @@ function message_admin_civicrm_entityTypes(&$entityTypes) { _message_admin_civix_civicrm_entityTypes($entityTypes); } -/** - * Implements hook_civicrm_themes(). - */ -function message_admin_civicrm_themes(&$themes) { - _message_admin_civix_civicrm_themes($themes); -} - // --- Functions below this ship commented out. Uncomment as required. --- /** diff --git a/ext/oauth-client/oauth_client.civix.php b/ext/oauth-client/oauth_client.civix.php index e48163534b..b599c4686c 100644 --- a/ext/oauth-client/oauth_client.civix.php +++ b/ext/oauth-client/oauth_client.civix.php @@ -285,25 +285,6 @@ function _oauth_client_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _oauth_client_civix_civicrm_themes(&$themes) { - $files = _oauth_client_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * 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 cdfb1a9cff..103a965f22 100644 --- a/ext/oauth-client/oauth_client.php +++ b/ext/oauth-client/oauth_client.php @@ -89,13 +89,6 @@ function oauth_client_civicrm_entityTypes(&$entityTypes) { _oauth_client_civix_civicrm_entityTypes($entityTypes); } -/** - * Implements hook_civicrm_thems(). - */ -function oauth_client_civicrm_themes(&$themes) { - _oauth_client_civix_civicrm_themes($themes); -} - // --- Functions below this ship commented out. Uncomment as required. --- /** diff --git a/ext/payflowpro/payflowpro.civix.php b/ext/payflowpro/payflowpro.civix.php index cba9d5bcf2..f837054e4e 100644 --- a/ext/payflowpro/payflowpro.civix.php +++ b/ext/payflowpro/payflowpro.civix.php @@ -309,25 +309,6 @@ function _payflowpro_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _payflowpro_civix_civicrm_themes(&$themes) { - $files = _payflowpro_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/payflowpro/payflowpro.php b/ext/payflowpro/payflowpro.php index b0a7c37033..5d9d9800cb 100644 --- a/ext/payflowpro/payflowpro.php +++ b/ext/payflowpro/payflowpro.php @@ -113,13 +113,6 @@ function payflowpro_civicrm_entityTypes(&$entityTypes) { _payflowpro_civix_civicrm_entityTypes($entityTypes); } -/** - * Implements hook_civicrm_themes(). - */ -function payflowpro_civicrm_themes(&$themes) { - _payflowpro_civix_civicrm_themes($themes); -} - // --- Functions below this ship commented out. Uncomment as required. --- /** diff --git a/ext/recaptcha/recaptcha.civix.php b/ext/recaptcha/recaptcha.civix.php index 6f72620c0f..0587774ea1 100644 --- a/ext/recaptcha/recaptcha.civix.php +++ b/ext/recaptcha/recaptcha.civix.php @@ -309,25 +309,6 @@ function _recaptcha_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _recaptcha_civix_civicrm_themes(&$themes) { - $files = _recaptcha_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/search_kit/search_kit.civix.php b/ext/search_kit/search_kit.civix.php index 66ce942fd2..e828d6dc55 100644 --- a/ext/search_kit/search_kit.civix.php +++ b/ext/search_kit/search_kit.civix.php @@ -285,25 +285,6 @@ function _search_kit_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _search_kit_civix_civicrm_themes(&$themes) { - $files = _search_kit_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * diff --git a/ext/search_kit/search_kit.php b/ext/search_kit/search_kit.php index 431e6103d2..b296d3cb4d 100644 --- a/ext/search_kit/search_kit.php +++ b/ext/search_kit/search_kit.php @@ -100,13 +100,6 @@ function search_kit_civicrm_entityTypes(&$entityTypes) { _search_kit_civix_civicrm_entityTypes($entityTypes); } -/** - * Implements hook_civicrm_themes(). - */ -function search_kit_civicrm_themes(&$themes) { - _search_kit_civix_civicrm_themes($themes); -} - /** * Implements hook_civicrm_pre(). */ diff --git a/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php b/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php index cadcd55319..27f60c1e70 100644 --- a/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php +++ b/ext/sequentialcreditnotes/sequentialcreditnotes.civix.php @@ -308,25 +308,6 @@ function _sequentialcreditnotes_civix_civicrm_caseTypes(&$caseTypes) { } } -/** - * (Delegated) Implements hook_civicrm_themes(). - * - * Find any and return any files matching "*.theme.php" - */ -function _sequentialcreditnotes_civix_civicrm_themes(&$themes) { - $files = _sequentialcreditnotes_civix_glob(__DIR__ . '/*.theme.php'); - foreach ($files as $file) { - $themeMeta = include $file; - if (empty($themeMeta['name'])) { - $themeMeta['name'] = preg_replace(':\.theme\.php$:', '', basename($file)); - } - if (empty($themeMeta['ext'])) { - $themeMeta['ext'] = E::LONG_NAME; - } - $themes[$themeMeta['name']] = $themeMeta; - } -} - /** * Glob wrapper which is guaranteed to return an array. * -- 2.25.1