ext/afform/core - Update to civix v23.02.0
authorTim Otten <totten@civicrm.org>
Fri, 24 Feb 2023 00:41:25 +0000 (16:41 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 24 Feb 2023 00:43:07 +0000 (16:43 -0800)
ext/afform/core/afform.civix.php
ext/afform/core/afform.php
ext/afform/core/info.xml

index 85f9a141821cac15bda44337d7d927c64e6c709f..9519d9269442933e74d25b6947ca7e19df6d36d6 100644 (file)
@@ -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 <compatibility>, 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',
-    ],
-  ]);
-}
index b381f64801a97df4029d42a297debe18d15628a1..5cb43af6f81f81a63be6b381b3d47e6a0c75c0a5 100644 (file)
@@ -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().
  */
index 756076148691047fd86f9c6c35ad75d878a04914..6c317939538b70212d50569f0923a39782ed5a8f 100644 (file)
@@ -21,7 +21,7 @@
   <comments>The Form Core extension is required to use any dynamic form. To administer and edit forms, also install the FormBuilder extension.</comments>
   <civix>
     <namespace>CRM/Afform</namespace>
-    <format>22.12.1</format>
+    <format>23.02.0</format>
   </civix>
   <classloader>
     <psr4 prefix="Civi\" path="Civi"/>
@@ -34,6 +34,8 @@
     <mixin>ang-php@1.0.0</mixin>
     <mixin>mgd-php@1.0.0</mixin>
     <mixin>scan-classes@1.0.0</mixin>
+    <mixin>smarty-v2@1.0.0</mixin>
+    <mixin>entity-types-php@1.0.0</mixin>
   </mixins>
   <upgrader>CRM_Afform_Upgrader</upgrader>
 </extension>