From b65c8862d585e0c7203b9c45085ac2f9816d637f Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 23 Feb 2023 16:41:25 -0800 Subject: [PATCH] ext/afform/core - Update to civix v23.02.0 --- ext/afform/core/afform.civix.php | 20 -------------------- ext/afform/core/afform.php | 11 ----------- ext/afform/core/info.xml | 4 +++- 3 files changed, 3 insertions(+), 32 deletions(-) diff --git a/ext/afform/core/afform.civix.php b/ext/afform/core/afform.civix.php index 85f9a14182..9519d92694 100644 --- a/ext/afform/core/afform.civix.php +++ b/ext/afform/core/afform.civix.php @@ -92,9 +92,6 @@ function _afform_civix_civicrm_config($config = NULL) { $configured = TRUE; $extRoot = __DIR__ . DIRECTORY_SEPARATOR; - $extDir = $extRoot . 'templates'; - CRM_Core_Smarty::singleton()->addTemplateDir($extDir); - $include_path = $extRoot . PATH_SEPARATOR . get_include_path(); set_include_path($include_path); // Based on , this does not currently require mixin/polyfill.php. @@ -201,20 +198,3 @@ function _afform_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) { } } } - -/** - * (Delegated) Implements hook_civicrm_entityTypes(). - * - * Find any *.entityType.php files, merge their content, and return. - * - * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes - */ -function _afform_civix_civicrm_entityTypes(&$entityTypes) { - $entityTypes = array_merge($entityTypes, [ - 'CRM_Afform_DAO_AfformSubmission' => [ - 'name' => 'AfformSubmission', - 'class' => 'CRM_Afform_DAO_AfformSubmission', - 'table' => 'civicrm_afform_submission', - ], - ]); -} diff --git a/ext/afform/core/afform.php b/ext/afform/core/afform.php index b381f64801..5cb43af6f8 100644 --- a/ext/afform/core/afform.php +++ b/ext/afform/core/afform.php @@ -360,17 +360,6 @@ function _afform_get_partials($moduleName, $module) { ]; } -/** - * Implements hook_civicrm_entityTypes(). - * - * Declare entity types provided by this module. - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_entityTypes - */ -function afform_civicrm_entityTypes(&$entityTypes) { - _afform_civix_civicrm_entityTypes($entityTypes); -} - /** * Implements hook_civicrm_buildAsset(). */ diff --git a/ext/afform/core/info.xml b/ext/afform/core/info.xml index 7560761486..6c31793953 100644 --- a/ext/afform/core/info.xml +++ b/ext/afform/core/info.xml @@ -21,7 +21,7 @@ The Form Core extension is required to use any dynamic form. To administer and edit forms, also install the FormBuilder extension. CRM/Afform - 22.12.1 + 23.02.0 @@ -34,6 +34,8 @@ ang-php@1.0.0 mgd-php@1.0.0 scan-classes@1.0.0 + smarty-v2@1.0.0 + entity-types-php@1.0.0 CRM_Afform_Upgrader -- 2.25.1