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

index ef54bbc93e3bdff2b895e032b76b8ec739c34de3..69a952d2b2295480057878ad3947791b95a899f2 100644 (file)
@@ -84,27 +84,17 @@ use CRM_CivicrmAdminUi_ExtensionUtil as E;
  *
  * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config
  */
-function _civicrm_admin_ui_civix_civicrm_config(&$config = NULL) {
+function _civicrm_admin_ui_civix_civicrm_config($config = NULL) {
   static $configured = FALSE;
   if ($configured) {
     return;
   }
   $configured = TRUE;
 
-  $template = CRM_Core_Smarty::singleton();
-
   $extRoot = __DIR__ . DIRECTORY_SEPARATOR;
-  $extDir = $extRoot . 'templates';
-
-  if (is_array($template->template_dir)) {
-    array_unshift($template->template_dir, $extDir);
-  }
-  else {
-    $template->template_dir = [$extDir, $template->template_dir];
-  }
-
   $include_path = $extRoot . PATH_SEPARATOR . get_include_path();
   set_include_path($include_path);
+  // Based on <compatibility>, this does not currently require mixin/polyfill.php.
 }
 
 /**
@@ -114,35 +104,7 @@ function _civicrm_admin_ui_civix_civicrm_config(&$config = NULL) {
  */
 function _civicrm_admin_ui_civix_civicrm_install() {
   _civicrm_admin_ui_civix_civicrm_config();
-  if ($upgrader = _civicrm_admin_ui_civix_upgrader()) {
-    $upgrader->onInstall();
-  }
-}
-
-/**
- * Implements hook_civicrm_postInstall().
- *
- * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall
- */
-function _civicrm_admin_ui_civix_civicrm_postInstall() {
-  _civicrm_admin_ui_civix_civicrm_config();
-  if ($upgrader = _civicrm_admin_ui_civix_upgrader()) {
-    if (is_callable([$upgrader, 'onPostInstall'])) {
-      $upgrader->onPostInstall();
-    }
-  }
-}
-
-/**
- * Implements hook_civicrm_uninstall().
- *
- * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall
- */
-function _civicrm_admin_ui_civix_civicrm_uninstall(): void {
-  _civicrm_admin_ui_civix_civicrm_config();
-  if ($upgrader = _civicrm_admin_ui_civix_upgrader()) {
-    $upgrader->onUninstall();
-  }
+  // Based on <compatibility>, this does not currently require mixin/polyfill.php.
 }
 
 /**
@@ -152,56 +114,7 @@ function _civicrm_admin_ui_civix_civicrm_uninstall(): void {
  */
 function _civicrm_admin_ui_civix_civicrm_enable(): void {
   _civicrm_admin_ui_civix_civicrm_config();
-  if ($upgrader = _civicrm_admin_ui_civix_upgrader()) {
-    if (is_callable([$upgrader, 'onEnable'])) {
-      $upgrader->onEnable();
-    }
-  }
-}
-
-/**
- * (Delegated) Implements hook_civicrm_disable().
- *
- * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable
- * @return mixed
- */
-function _civicrm_admin_ui_civix_civicrm_disable(): void {
-  _civicrm_admin_ui_civix_civicrm_config();
-  if ($upgrader = _civicrm_admin_ui_civix_upgrader()) {
-    if (is_callable([$upgrader, 'onDisable'])) {
-      $upgrader->onDisable();
-    }
-  }
-}
-
-/**
- * (Delegated) Implements hook_civicrm_upgrade().
- *
- * @param $op string, the type of operation being performed; 'check' or 'enqueue'
- * @param $queue CRM_Queue_Queue, (for 'enqueue') the modifiable list of pending up upgrade tasks
- *
- * @return mixed
- *   based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending)
- *   for 'enqueue', returns void
- *
- * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade
- */
-function _civicrm_admin_ui_civix_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) {
-  if ($upgrader = _civicrm_admin_ui_civix_upgrader()) {
-    return $upgrader->onUpgrade($op, $queue);
-  }
-}
-
-/**
- * @return CRM_CivicrmAdminUi_Upgrader
- */
-function _civicrm_admin_ui_civix_upgrader() {
-  if (!file_exists(__DIR__ . '/CRM/CivicrmAdminUi/Upgrader.php')) {
-    return NULL;
-  }
-  else {
-    return CRM_CivicrmAdminUi_Upgrader_Base::instance();
-  }
+  // Based on <compatibility>, this does not currently require mixin/polyfill.php.
 }
 
 /**
@@ -285,14 +198,3 @@ function _civicrm_admin_ui_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $pa
     }
   }
 }
-
-/**
- * (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 _civicrm_admin_ui_civix_civicrm_entityTypes(&$entityTypes) {
-  $entityTypes = array_merge($entityTypes, []);
-}
index 456b78b883959190940682c5a7ec753e00f9fcb1..85db9c327710d8371e61ee7744686d1d89aa2b53 100644 (file)
@@ -13,14 +13,3 @@ use CRM_CivicrmAdminUi_ExtensionUtil as E;
 function civicrm_admin_ui_civicrm_config(&$config) {
   _civicrm_admin_ui_civix_civicrm_config($config);
 }
-
-/**
- * Implements hook_civicrm_entityTypes().
- *
- * Declare entity types provided by this module.
- *
- * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes
- */
-function civicrm_admin_ui_civicrm_entityTypes(&$entityTypes) {
-  _civicrm_admin_ui_civix_civicrm_entityTypes($entityTypes);
-}
index b8aa5cb043e06193e70999904e692719a05c58c5..b5b543de8da759283519a3a696257f0b129aa737 100644 (file)
@@ -32,7 +32,7 @@
   <civix>
     <namespace>CRM/CivicrmAdminUi</namespace>
     <angularModule>crmCivicrmAdminUi</angularModule>
-    <format>22.10.0</format>
+    <format>23.02.0</format>
   </civix>
   <mixins>
     <mixin>mgd-php@1.0.0</mixin>