From 32cbb1563d35c967e78bfd9d8ede1a72523151c2 Mon Sep 17 00:00:00 2001 From: colemanw Date: Mon, 17 Jul 2023 14:17:41 -0400 Subject: [PATCH] Delete unused boilerplate comments --- ext/authx/authx.php | 11 ------- ext/civicrm_search_ui/civicrm_search_ui.php | 28 ----------------- ext/ckeditor4/ckeditor4.php | 28 ----------------- ext/elavon/elavon.php | 28 ----------------- ext/ewaysingle/ewaysingle.php | 28 ----------------- ext/financialacls/financialacls.php | 28 ----------------- ext/message_admin/message_admin.php | 28 ----------------- ext/payflowpro/payflowpro.php | 28 ----------------- ext/standaloneusers/standaloneusers.php | 33 --------------------- tests/extensions/shimmy/shimmy.php | 28 ----------------- 10 files changed, 268 deletions(-) diff --git a/ext/authx/authx.php b/ext/authx/authx.php index d8a1f13b32..01091f9b2b 100644 --- a/ext/authx/authx.php +++ b/ext/authx/authx.php @@ -128,17 +128,6 @@ function authx_civicrm_permission(&$permissions) { $permissions['validate any authx credential'] = E::ts('Authx: Validate credentials for other users via the API'); } -// --- Functions below this ship commented out. Uncomment as required. --- - -/** - * Implements hook_civicrm_preProcess(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_preProcess - */ -//function authx_civicrm_preProcess($formName, &$form) { -// -//} - /** * Implements hook_civicrm_navigationMenu(). * diff --git a/ext/civicrm_search_ui/civicrm_search_ui.php b/ext/civicrm_search_ui/civicrm_search_ui.php index a528bf4614..7b15fe19ac 100644 --- a/ext/civicrm_search_ui/civicrm_search_ui.php +++ b/ext/civicrm_search_ui/civicrm_search_ui.php @@ -31,31 +31,3 @@ function civicrm_search_ui_civicrm_install(): void { function civicrm_search_ui_civicrm_enable(): void { _civicrm_search_ui_civix_civicrm_enable(); } - -// --- Functions below this ship commented out. Uncomment as required. --- - -/** - * Implements hook_civicrm_preProcess(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_preProcess - */ -//function civicrm_search_ui_civicrm_preProcess($formName, &$form): void { -// -//} - -/** - * Implements hook_civicrm_navigationMenu(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu - */ -//function civicrm_search_ui_civicrm_navigationMenu(&$menu): void { -// _civicrm_search_ui_civix_insert_navigation_menu($menu, 'Mailings', [ -// 'label' => E::ts('New subliminal message'), -// 'name' => 'mailing_subliminal_message', -// 'url' => 'civicrm/mailing/subliminal', -// 'permission' => 'access CiviMail', -// 'operator' => 'OR', -// 'separator' => 0, -// ]); -// _civicrm_search_ui_civix_navigationMenu($menu); -//} diff --git a/ext/ckeditor4/ckeditor4.php b/ext/ckeditor4/ckeditor4.php index 5bd699dccc..e47d3b96d6 100644 --- a/ext/ckeditor4/ckeditor4.php +++ b/ext/ckeditor4/ckeditor4.php @@ -64,31 +64,3 @@ function ckeditor4_civicrm_coreResourceList(&$list, $region) { ]; } } - -// --- Functions below this ship commented out. Uncomment as required. --- - -/** - * Implements hook_civicrm_preProcess(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_preProcess - */ -//function ckeditor4_civicrm_preProcess($formName, &$form) { -// -//} - -/** - * Implements hook_civicrm_navigationMenu(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu - */ -//function ckeditor4_civicrm_navigationMenu(&$menu) { -// _ckeditor4_civix_insert_navigation_menu($menu, 'Mailings', array( -// 'label' => E::ts('New subliminal message'), -// 'name' => 'mailing_subliminal_message', -// 'url' => 'civicrm/mailing/subliminal', -// 'permission' => 'access CiviMail', -// 'operator' => 'OR', -// 'separator' => 0, -// )); -// _ckeditor4_civix_navigationMenu($menu); -//} diff --git a/ext/elavon/elavon.php b/ext/elavon/elavon.php index 382861606a..7bd31d2110 100644 --- a/ext/elavon/elavon.php +++ b/ext/elavon/elavon.php @@ -78,31 +78,3 @@ function elavon_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { function elavon_civicrm_entityTypes(&$entityTypes) { _elavon_civix_civicrm_entityTypes($entityTypes); } - -// --- Functions below this ship commented out. Uncomment as required. --- - -/** - * Implements hook_civicrm_preProcess(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_preProcess - */ -//function elavon_civicrm_preProcess($formName, &$form) { -// -//} - -/** - * Implements hook_civicrm_navigationMenu(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu - */ -//function elavon_civicrm_navigationMenu(&$menu) { -// _elavon_civix_insert_navigation_menu($menu, 'Mailings', [ -// 'label' => E::ts('New subliminal message'), -// 'name' => 'mailing_subliminal_message', -// 'url' => 'civicrm/mailing/subliminal', -// 'permission' => 'access CiviMail', -// 'operator' => 'OR', -// 'separator' => 0, -// ]); -// _elavon_civix_navigationMenu($menu); -//} diff --git a/ext/ewaysingle/ewaysingle.php b/ext/ewaysingle/ewaysingle.php index 9347754258..9c146e341b 100644 --- a/ext/ewaysingle/ewaysingle.php +++ b/ext/ewaysingle/ewaysingle.php @@ -78,31 +78,3 @@ function ewaysingle_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { function ewaysingle_civicrm_entityTypes(&$entityTypes) { _ewaysingle_civix_civicrm_entityTypes($entityTypes); } - -// --- Functions below this ship commented out. Uncomment as required. --- - -/** - * Implements hook_civicrm_preProcess(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_preProcess - */ -//function ewaysingle_civicrm_preProcess($formName, &$form) { -// -//} - -/** - * Implements hook_civicrm_navigationMenu(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu - */ -//function ewaysingle_civicrm_navigationMenu(&$menu) { -// _ewaysingle_civix_insert_navigation_menu($menu, 'Mailings', array( -// 'label' => E::ts('New subliminal message'), -// 'name' => 'mailing_subliminal_message', -// 'url' => 'civicrm/mailing/subliminal', -// 'permission' => 'access CiviMail', -// 'operator' => 'OR', -// 'separator' => 0, -// )); -// _ewaysingle_civix_navigationMenu($menu); -//} diff --git a/ext/financialacls/financialacls.php b/ext/financialacls/financialacls.php index 8dea84fe6f..3265558fed 100644 --- a/ext/financialacls/financialacls.php +++ b/ext/financialacls/financialacls.php @@ -372,17 +372,6 @@ function financialacls_toggle() { unset(\Civi::$statics['CRM_Financial_BAO_FinancialType']); } -// --- Functions below this ship commented out. Uncomment as required. --- - -/** - * Implements hook_civicrm_preProcess(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_preProcess - */ -//function financialacls_civicrm_preProcess($formName, &$form) { -// -//} - /** * Require financial acl permissions for financial screens. * @@ -394,20 +383,3 @@ function financialacls_civicrm_alterMenu(array &$menu): void { } $menu['civicrm/admin/financial/financialType']['access_arguments'] = [['administer CiviCRM Financial Types']]; } - -/** - * Implements hook_civicrm_navigationMenu(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu - */ -//function financialacls_civicrm_navigationMenu(&$menu) { -// _financialacls_civix_insert_navigation_menu($menu, 'Mailings', array( -// 'label' => E::ts('New subliminal message'), -// 'name' => 'mailing_subliminal_message', -// 'url' => 'civicrm/mailing/subliminal', -// 'permission' => 'access CiviMail', -// 'operator' => 'OR', -// 'separator' => 0, -// )); -// _financialacls_civix_navigationMenu($menu); -//} diff --git a/ext/message_admin/message_admin.php b/ext/message_admin/message_admin.php index 41fa59a346..6cb86bb49c 100644 --- a/ext/message_admin/message_admin.php +++ b/ext/message_admin/message_admin.php @@ -31,31 +31,3 @@ function message_admin_civicrm_install() { function message_admin_civicrm_enable() { _message_admin_civix_civicrm_enable(); } - -// --- Functions below this ship commented out. Uncomment as required. --- - -/** - * Implements hook_civicrm_preProcess(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_preProcess - */ -//function message_admin_civicrm_preProcess($formName, &$form) { -// -//} - -/** - * Implements hook_civicrm_navigationMenu(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu - */ -//function message_admin_civicrm_navigationMenu(&$menu) { -// _message_admin_civix_insert_navigation_menu($menu, 'Mailings', array( -// 'label' => E::ts('New subliminal message'), -// 'name' => 'mailing_subliminal_message', -// 'url' => 'civicrm/mailing/subliminal', -// 'permission' => 'access CiviMail', -// 'operator' => 'OR', -// 'separator' => 0, -// )); -// _message_admin_civix_navigationMenu($menu); -//} diff --git a/ext/payflowpro/payflowpro.php b/ext/payflowpro/payflowpro.php index e4f8cd8ab7..3479e41c73 100644 --- a/ext/payflowpro/payflowpro.php +++ b/ext/payflowpro/payflowpro.php @@ -78,31 +78,3 @@ function payflowpro_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { function payflowpro_civicrm_entityTypes(&$entityTypes) { _payflowpro_civix_civicrm_entityTypes($entityTypes); } - -// --- Functions below this ship commented out. Uncomment as required. --- - -/** - * Implements hook_civicrm_preProcess(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_preProcess - */ -//function payflowpro_civicrm_preProcess($formName, &$form) { -// -//} - -/** - * Implements hook_civicrm_navigationMenu(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu - */ -//function payflowpro_civicrm_navigationMenu(&$menu) { -// _payflowpro_civix_insert_navigation_menu($menu, 'Mailings', array( -// 'label' => E::ts('New subliminal message'), -// 'name' => 'mailing_subliminal_message', -// 'url' => 'civicrm/mailing/subliminal', -// 'permission' => 'access CiviMail', -// 'operator' => 'OR', -// 'separator' => 0, -// )); -// _payflowpro_civix_navigationMenu($menu); -//} diff --git a/ext/standaloneusers/standaloneusers.php b/ext/standaloneusers/standaloneusers.php index d3bae6f5d2..9bdb964792 100644 --- a/ext/standaloneusers/standaloneusers.php +++ b/ext/standaloneusers/standaloneusers.php @@ -31,36 +31,3 @@ function standaloneusers_civicrm_install() { function standaloneusers_civicrm_enable() { _standaloneusers_civix_civicrm_enable(); } - -// --- Functions below this ship commented out. Uncomment as required. --- - -/** - * Implements hook_civicrm_preProcess(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_preProcess - */ -//function standaloneusers_civicrm_preProcess($formName, &$form) { -// -//} - -/** - * Implements hook_civicrm_navigationMenu(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu - */ -// function standaloneusers_civicrm_navigationMenu(&$menu) { -// _standalineusers_addUserMenus($menu); -// } - -// function _standaloneusers_addUserMenus(&$menu) { -// _standaloneusers_civix_insert_navigation_menu($menu, 'Administer/Users and Permissions', [ -// 'label' => E::ts('Users'), -// 'name' => 'admin_users', -// 'url' => 'civicrm/search#/display/Users/Users', -// 'permission' => 'cms:administer users', -// 'operator' => 'OR', -// 'separator' => 0, -// 'weight' => 0, -// ]); -// _standaloneusers_civix_navigationMenu($menu); -// } diff --git a/tests/extensions/shimmy/shimmy.php b/tests/extensions/shimmy/shimmy.php index b78168fd35..756c4a9b3e 100644 --- a/tests/extensions/shimmy/shimmy.php +++ b/tests/extensions/shimmy/shimmy.php @@ -79,34 +79,6 @@ function shimmy_civicrm_entityTypes(&$entityTypes) { _shimmy_civix_civicrm_entityTypes($entityTypes); } -// --- Functions below this ship commented out. Uncomment as required. --- - -/** - * Implements hook_civicrm_preProcess(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_preProcess - */ -//function shimmy_civicrm_preProcess($formName, &$form) { -// -//} - -/** - * Implements hook_civicrm_navigationMenu(). - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu - */ -//function shimmy_civicrm_navigationMenu(&$menu) { -// _shimmy_civix_insert_navigation_menu($menu, 'Mailings', array( -// 'label' => E::ts('New subliminal message'), -// 'name' => 'mailing_subliminal_message', -// 'url' => 'civicrm/mailing/subliminal', -// 'permission' => 'access CiviMail', -// 'operator' => 'OR', -// 'separator' => 0, -// )); -// _shimmy_civix_navigationMenu($menu); -//} - /** * Assert that there is a service with a given name+type. * -- 2.25.1