ext/oauth_client - Update to civix v23.02.0
authorTim Otten <totten@civicrm.org>
Fri, 24 Feb 2023 00:47:05 +0000 (16:47 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 24 Feb 2023 00:47:05 +0000 (16:47 -0800)
ext/oauth-client/info.xml
ext/oauth-client/oauth_client.civix.php
ext/oauth-client/oauth_client.php

index 3dc1a6e6dc42820e1266cd89cc99f022117d782a..55593f630c97ec9b16e006b954b807128514c862 100644 (file)
     <mixin>ang-php@1.0.0</mixin>
     <mixin>menu-xml@1.0.0</mixin>
     <mixin>setting-php@1.0.0</mixin>
+    <mixin>smarty-v2@1.0.0</mixin>
+    <mixin>entity-types-php@1.0.0</mixin>
   </mixins>
   <civix>
     <namespace>CRM/OAuth</namespace>
-    <format>22.12.1</format>
+    <format>23.02.0</format>
   </civix>
 </extension>
index 91cdf5cfa0fd33d4cdc0d31402d157161e767077..bf8cc5fd0aa5cf758c84ae9c8b586783fb48a279 100644 (file)
@@ -92,9 +92,6 @@ function _oauth_client_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,30 +198,3 @@ function _oauth_client_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parent
     }
   }
 }
-
-/**
- * (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 _oauth_client_civix_civicrm_entityTypes(&$entityTypes) {
-  $entityTypes = array_merge($entityTypes, [
-    'CRM_OAuth_DAO_OAuthClient' => [
-      'name' => 'OAuthClient',
-      'class' => 'CRM_OAuth_DAO_OAuthClient',
-      'table' => 'civicrm_oauth_client',
-    ],
-    'CRM_OAuth_DAO_OAuthContactToken' => [
-      'name' => 'OAuthContactToken',
-      'class' => 'CRM_OAuth_DAO_OAuthContactToken',
-      'table' => 'civicrm_oauth_contact_token',
-    ],
-    'CRM_OAuth_DAO_OAuthSysToken' => [
-      'name' => 'OAuthSysToken',
-      'class' => 'CRM_OAuth_DAO_OAuthSysToken',
-      'table' => 'civicrm_oauth_systoken',
-    ],
-  ]);
-}
index c1260c0fd6ca4b88a054d2a0cac6ab5508d66ef8..fd23498bf8f2585ba7737e688a575a249e338679 100644 (file)
@@ -44,17 +44,6 @@ function oauth_client_civicrm_permission(&$permissions) {
   ];
 }
 
-/**
- * Implements hook_civicrm_entityTypes().
- *
- * Declare entity types provided by this module.
- *
- * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes
- */
-function oauth_client_civicrm_entityTypes(&$entityTypes) {
-  _oauth_client_civix_civicrm_entityTypes($entityTypes);
-}
-
 /**
  * @param \Symfony\Component\DependencyInjection\ContainerBuilder $container
  */