From e7170e5fa624f99d09c90037dfd27be5291901e6 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Wed, 4 Jan 2023 19:26:25 -0500 Subject: [PATCH 1/2] deprecated functions --- CRM/DataBCGeocode/Form/Settings.php | 12 ++++++------ CRM/Utils/Geocode/DataBC.php | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CRM/DataBCGeocode/Form/Settings.php b/CRM/DataBCGeocode/Form/Settings.php index 375de73..60e8027 100644 --- a/CRM/DataBCGeocode/Form/Settings.php +++ b/CRM/DataBCGeocode/Form/Settings.php @@ -44,9 +44,9 @@ function buildQuickForm() { function setDefaultValues() { $defaults = array( - 'match_threshold' => CRM_Core_BAO_Setting::getItem('bcdatageocode', 'bcdata_match_threshold', NULL, self::D_THRESHOLD), - 'match_precision' => CRM_Core_BAO_Setting::getItem('bcdatageocode', 'bcdata_match_precision', NULL, self::D_PRECISION), - 'backup_geoProvider' => CRM_Core_BAO_Setting::getItem('bcdatageocode', 'bcdata_backup_geoProvider'), + 'match_threshold' => Civi::settings()->get('bcdata_match_threshold') ?? self::D_THRESHOLD, + 'match_precision' => Civi::settings()->get('bcdata_match_precision') ?? self::D_PRECISION, + 'backup_geoProvider' => Civi::settings()->get('bcdata_backup_geoProvider'), ); return $defaults; @@ -57,9 +57,9 @@ function postProcess() { $values = $this->exportValues(); if (CRM_Utils_Array::value('match_threshold', $values)) { - CRM_Core_BAO_Setting::setItem($values['match_threshold'], 'bcdatageocode', 'bcdata_match_threshold'); - CRM_Core_BAO_Setting::setItem($values['match_precision'], 'bcdatageocode', 'bcdata_match_precision'); - CRM_Core_BAO_Setting::setItem($values['backup_geoProvider'], 'bcdatageocode', 'bcdata_backup_geoProvider'); + Civi::settings()->set('bcdata_match_threshold', $values['match_threshold']); + Civi::settings()->set('bcdata_match_precision', $values['match_precision']); + Civi::settings()->set('bcdata_backup_geoProvider', $values['backup_geoProvider']); } parent::postProcess(); diff --git a/CRM/Utils/Geocode/DataBC.php b/CRM/Utils/Geocode/DataBC.php index 9457542..8327843 100644 --- a/CRM/Utils/Geocode/DataBC.php +++ b/CRM/Utils/Geocode/DataBC.php @@ -67,7 +67,7 @@ static function format(&$values, $stateName = FALSE) { if ((CRM_Utils_Array::value('state_province_id', $values) != '1101') && (CRM_Utils_Array::value('state_province', $values) != 'British Columbia')) { // if we get here we are NOT in British Columbia - try BackUp method! - $backupgeoProvider = CRM_Core_BAO_Setting::getItem('bcdatageocode', 'bcdata_backup_geoProvider'); + $backupgeoProvider = Civi::settings()->get('bcdata_backup_geoProvider'); if ($backupgeoProvider == 'Google') { $class = new CRM_Utils_Geocode_Google(); @@ -105,8 +105,8 @@ static function format(&$values, $stateName = FALSE) { $add .= ', BC'; $add = urlencode($add); - $minScore = CRM_Core_BAO_Setting::getItem('bcdatageocode','bcdata_match_threshold'); - $selectedPrecision = CRM_Core_BAO_Setting::getItem('bcdatageocode', 'bcdata_match_precision'); + $minScore = Civi::settings()->get('bcdata_match_threshold'); + $selectedPrecision = Civi::settings()->get('bcdata_match_precision'); $precisions = array( 0 => 'CIVIC_NUMBER', From cc66aaaeeea491d75ccdbf7e51cff85abe789a5b Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Wed, 4 Jan 2023 19:26:35 -0500 Subject: [PATCH 2/2] civix upgrade --- databcgeocode.civix.php | 394 ++++++++++++++++------------------------ databcgeocode.php | 110 ++--------- info.xml | 15 +- 3 files changed, 180 insertions(+), 339 deletions(-) diff --git a/databcgeocode.civix.php b/databcgeocode.civix.php index d44568e..389c55a 100644 --- a/databcgeocode.civix.php +++ b/databcgeocode.civix.php @@ -2,10 +2,87 @@ // AUTO-GENERATED FILE -- Civix may overwrite any changes made to this file +/** + * The ExtensionUtil class provides small stubs for accessing resources of this + * extension. + */ +class CRM_DataBCGeocode_ExtensionUtil { + const SHORT_NAME = 'databcgeocode'; + const LONG_NAME = 'com.semperit.databcgeocode'; + const CLASS_PREFIX = 'CRM_DataBCGeocode'; + + /** + * Translate a string using the extension's domain. + * + * If the extension doesn't have a specific translation + * for the string, fallback to the default translations. + * + * @param string $text + * Canonical message text (generally en_US). + * @param array $params + * @return string + * Translated text. + * @see ts + */ + public static function ts($text, $params = []): string { + if (!array_key_exists('domain', $params)) { + $params['domain'] = [self::LONG_NAME, NULL]; + } + return ts($text, $params); + } + + /** + * Get the URL of a resource file (in this extension). + * + * @param string|NULL $file + * Ex: NULL. + * Ex: 'css/foo.css'. + * @return string + * Ex: 'http://example.org/sites/default/ext/org.example.foo'. + * Ex: 'http://example.org/sites/default/ext/org.example.foo/css/foo.css'. + */ + public static function url($file = NULL): string { + if ($file === NULL) { + return rtrim(CRM_Core_Resources::singleton()->getUrl(self::LONG_NAME), '/'); + } + return CRM_Core_Resources::singleton()->getUrl(self::LONG_NAME, $file); + } + + /** + * Get the path of a resource file (in this extension). + * + * @param string|NULL $file + * Ex: NULL. + * Ex: 'css/foo.css'. + * @return string + * Ex: '/var/www/example.org/sites/default/ext/org.example.foo'. + * Ex: '/var/www/example.org/sites/default/ext/org.example.foo/css/foo.css'. + */ + public static function path($file = NULL) { + // return CRM_Core_Resources::singleton()->getPath(self::LONG_NAME, $file); + return __DIR__ . ($file === NULL ? '' : (DIRECTORY_SEPARATOR . $file)); + } + + /** + * Get the name of a class within this extension. + * + * @param string $suffix + * Ex: 'Page_HelloWorld' or 'Page\\HelloWorld'. + * @return string + * Ex: 'CRM_Foo_Page_HelloWorld'. + */ + public static function findClass($suffix) { + return self::CLASS_PREFIX . '_' . str_replace('\\', '_', $suffix); + } + +} + +use CRM_DataBCGeocode_ExtensionUtil as E; + /** * (Delegated) Implements hook_civicrm_config(). * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_config + * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config */ function _databcgeocode_civix_civicrm_config(&$config = NULL) { static $configured = FALSE; @@ -14,299 +91,132 @@ function _databcgeocode_civix_civicrm_config(&$config = NULL) { } $configured = TRUE; - $template =& CRM_Core_Smarty::singleton(); + $template = CRM_Core_Smarty::singleton(); - $extRoot = dirname(__FILE__) . DIRECTORY_SEPARATOR; + $extRoot = __DIR__ . DIRECTORY_SEPARATOR; $extDir = $extRoot . 'templates'; - if ( is_array( $template->template_dir ) ) { - array_unshift( $template->template_dir, $extDir ); + if (is_array($template->template_dir)) { + array_unshift($template->template_dir, $extDir); } else { - $template->template_dir = array( $extDir, $template->template_dir ); + $template->template_dir = [$extDir, $template->template_dir]; } - $include_path = $extRoot . PATH_SEPARATOR . get_include_path( ); + $include_path = $extRoot . PATH_SEPARATOR . get_include_path(); set_include_path($include_path); -} - -/** - * (Delegated) Implements hook_civicrm_xmlMenu(). - * - * @param $files array(string) - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_xmlMenu - */ -function _databcgeocode_civix_civicrm_xmlMenu(&$files) { - foreach (_databcgeocode_civix_glob(__DIR__ . '/xml/Menu/*.xml') as $file) { - $files[] = $file; - } + // Based on , this does not currently require mixin/polyfill.php. } /** * Implements hook_civicrm_install(). * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_install + * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install */ function _databcgeocode_civix_civicrm_install() { _databcgeocode_civix_civicrm_config(); - if ($upgrader = _databcgeocode_civix_upgrader()) { - $upgrader->onInstall(); - } -} - -/** - * Implements hook_civicrm_uninstall(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_uninstall - */ -function _databcgeocode_civix_civicrm_uninstall() { - _databcgeocode_civix_civicrm_config(); - if ($upgrader = _databcgeocode_civix_upgrader()) { - $upgrader->onUninstall(); - } + // Based on , this does not currently require mixin/polyfill.php. } /** * (Delegated) Implements hook_civicrm_enable(). * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_enable - */ -function _databcgeocode_civix_civicrm_enable() { - _databcgeocode_civix_civicrm_config(); - if ($upgrader = _databcgeocode_civix_upgrader()) { - if (is_callable(array($upgrader, 'onEnable'))) { - $upgrader->onEnable(); - } - } -} - -/** - * (Delegated) Implements hook_civicrm_disable(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_disable - * @return mixed + * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable */ -function _databcgeocode_civix_civicrm_disable() { +function _databcgeocode_civix_civicrm_enable(): void { _databcgeocode_civix_civicrm_config(); - if ($upgrader = _databcgeocode_civix_upgrader()) { - if (is_callable(array($upgrader, 'onDisable'))) { - $upgrader->onDisable(); - } - } + // Based on , this does not currently require mixin/polyfill.php. } /** - * (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 + * Inserts a navigation menu item at a given place in the hierarchy. * - * @return mixed based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending) - * for 'enqueue', returns void + * @param array $menu - menu hierarchy + * @param string $path - path to parent of this item, e.g. 'my_extension/submenu' + * 'Mailing', or 'Administer/System Settings' + * @param array $item - the item to insert (parent/child attributes will be + * filled for you) * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_upgrade + * @return bool */ -function _databcgeocode_civix_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { - if ($upgrader = _databcgeocode_civix_upgrader()) { - return $upgrader->onUpgrade($op, $queue); - } -} - -/** - * @return CRM_DataBCGeocode_Upgrader - */ -function _databcgeocode_civix_upgrader() { - if (!file_exists(__DIR__.'/CRM/DataBCGeocode/Upgrader.php')) { - return NULL; +function _databcgeocode_civix_insert_navigation_menu(&$menu, $path, $item) { + // If we are done going down the path, insert menu + if (empty($path)) { + $menu[] = [ + 'attributes' => array_merge([ + 'label' => CRM_Utils_Array::value('name', $item), + 'active' => 1, + ], $item), + ]; + return TRUE; } else { - return CRM_DataBCGeocode_Upgrader_Base::instance(); - } -} - -/** - * Search directory tree for files which match a glob pattern - * - * Note: Dot-directories (like "..", ".git", or ".svn") will be ignored. - * Note: In Civi 4.3+, delegate to CRM_Utils_File::findFiles() - * - * @param $dir string, base dir - * @param $pattern string, glob pattern, eg "*.txt" - * @return array(string) - */ -function _databcgeocode_civix_find_files($dir, $pattern) { - if (is_callable(array('CRM_Utils_File', 'findFiles'))) { - return CRM_Utils_File::findFiles($dir, $pattern); - } - - $todos = array($dir); - $result = array(); - while (!empty($todos)) { - $subdir = array_shift($todos); - foreach (_databcgeocode_civix_glob("$subdir/$pattern") as $match) { - if (!is_dir($match)) { - $result[] = $match; - } - } - if ($dh = opendir($subdir)) { - while (FALSE !== ($entry = readdir($dh))) { - $path = $subdir . DIRECTORY_SEPARATOR . $entry; - if ($entry{0} == '.') { - } elseif (is_dir($path)) { - $todos[] = $path; + // Find an recurse into the next level down + $found = FALSE; + $path = explode('/', $path); + $first = array_shift($path); + foreach ($menu as $key => &$entry) { + if ($entry['attributes']['name'] == $first) { + if (!isset($entry['child'])) { + $entry['child'] = []; } + $found = _databcgeocode_civix_insert_navigation_menu($entry['child'], implode('/', $path), $item); } - closedir($dh); } + return $found; } - return $result; } + /** - * (Delegated) Implements hook_civicrm_managed(). - * - * Find any *.mgd.php files, merge their content, and return. - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_managed + * (Delegated) Implements hook_civicrm_navigationMenu(). */ -function _databcgeocode_civix_civicrm_managed(&$entities) { - $mgdFiles = _databcgeocode_civix_find_files(__DIR__, '*.mgd.php'); - foreach ($mgdFiles as $file) { - $es = include $file; - foreach ($es as $e) { - if (empty($e['module'])) { - $e['module'] = 'com.semperit.databcgeocode'; - } - $entities[] = $e; - } +function _databcgeocode_civix_navigationMenu(&$nodes) { + if (!is_callable(['CRM_Core_BAO_Navigation', 'fixNavigationMenu'])) { + _databcgeocode_civix_fixNavigationMenu($nodes); } } /** - * (Delegated) Implements hook_civicrm_caseTypes(). - * - * Find any and return any files matching "xml/case/*.xml" - * - * Note: This hook only runs in CiviCRM 4.4+. - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_caseTypes + * Given a navigation menu, generate navIDs for any items which are + * missing them. */ -function _databcgeocode_civix_civicrm_caseTypes(&$caseTypes) { - if (!is_dir(__DIR__ . '/xml/case')) { - return; - } - - foreach (_databcgeocode_civix_glob(__DIR__ . '/xml/case/*.xml') as $file) { - $name = preg_replace('/\.xml$/', '', basename($file)); - if ($name != CRM_Case_XMLProcessor::mungeCaseType($name)) { - $errorMessage = sprintf("Case-type file name is malformed (%s vs %s)", $name, CRM_Case_XMLProcessor::mungeCaseType($name)); - CRM_Core_Error::fatal($errorMessage); - // throw new CRM_Core_Exception($errorMessage); +function _databcgeocode_civix_fixNavigationMenu(&$nodes) { + $maxNavID = 1; + array_walk_recursive($nodes, function($item, $key) use (&$maxNavID) { + if ($key === 'navID') { + $maxNavID = max($maxNavID, $item); } - $caseTypes[$name] = array( - 'module' => 'com.semperit.databcgeocode', - 'name' => $name, - 'file' => $file, - ); - } + }); + _databcgeocode_civix_fixNavigationMenuItems($nodes, $maxNavID, NULL); } -/** -* (Delegated) Implements hook_civicrm_angularModules(). -* -* Find any and return any files matching "ang/*.ang.php" -* -* Note: This hook only runs in CiviCRM 4.5+. -* -* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_angularModules -*/ -function _databcgeocode_civix_civicrm_angularModules(&$angularModules) { - if (!is_dir(__DIR__ . '/ang')) { - return; - } - - $files = _databcgeocode_civix_glob(__DIR__ . '/ang/*.ang.php'); - foreach ($files as $file) { - $name = preg_replace(':\.ang\.php$:', '', basename($file)); - $module = include $file; - if (empty($module['ext'])) { - $module['ext'] = 'com.semperit.databcgeocode'; +function _databcgeocode_civix_fixNavigationMenuItems(&$nodes, &$maxNavID, $parentID) { + $origKeys = array_keys($nodes); + foreach ($origKeys as $origKey) { + if (!isset($nodes[$origKey]['attributes']['parentID']) && $parentID !== NULL) { + $nodes[$origKey]['attributes']['parentID'] = $parentID; } - $angularModules[$name] = $module; - } -} - -/** - * Glob wrapper which is guaranteed to return an array. - * - * The documentation for glob() says, "On some systems it is impossible to - * distinguish between empty match and an error." Anecdotally, the return - * result for an empty match is sometimes array() and sometimes FALSE. - * This wrapper provides consistency. - * - * @link http://php.net/glob - * @param string $pattern - * @return array, possibly empty - */ -function _databcgeocode_civix_glob($pattern) { - $result = glob($pattern); - return is_array($result) ? $result : array(); -} - -/** - * Inserts a navigation menu item at a given place in the hierarchy. - * - * @param array $menu - menu hierarchy - * @param string $path - path where insertion should happen (ie. Administer/System Settings) - * @param array $item - menu you need to insert (parent/child attributes will be filled for you) - * @param int $parentId - used internally to recurse in the menu structure - */ -function _databcgeocode_civix_insert_navigation_menu(&$menu, $path, $item, $parentId = NULL) { - static $navId; - - // If we are done going down the path, insert menu - if (empty($path)) { - if (!$navId) $navId = CRM_Core_DAO::singleValueQuery("SELECT max(id) FROM civicrm_navigation"); - $navId ++; - $menu[$navId] = array ( - 'attributes' => array_merge($item, array( - 'label' => CRM_Utils_Array::value('name', $item), - 'active' => 1, - 'parentID' => $parentId, - 'navID' => $navId, - )) - ); - return true; - } - else { - // Find an recurse into the next level down - $found = false; - $path = explode('/', $path); - $first = array_shift($path); - foreach ($menu as $key => &$entry) { - if ($entry['attributes']['name'] == $first) { - if (!$entry['child']) $entry['child'] = array(); - $found = _databcgeocode_civix_insert_navigation_menu($entry['child'], implode('/', $path), $item, $key); - } + // If no navID, then assign navID and fix key. + if (!isset($nodes[$origKey]['attributes']['navID'])) { + $newKey = ++$maxNavID; + $nodes[$origKey]['attributes']['navID'] = $newKey; + $nodes[$newKey] = $nodes[$origKey]; + unset($nodes[$origKey]); + $origKey = $newKey; + } + if (isset($nodes[$origKey]['child']) && is_array($nodes[$origKey]['child'])) { + _databcgeocode_civix_fixNavigationMenuItems($nodes[$origKey]['child'], $maxNavID, $nodes[$origKey]['attributes']['navID']); } - return $found; } } /** - * (Delegated) Implements hook_civicrm_alterSettingsFolders(). + * (Delegated) Implements hook_civicrm_entityTypes(). + * + * Find any *.entityType.php files, merge their content, and return. * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_alterSettingsFolders + * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes */ -function _databcgeocode_civix_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - static $configured = FALSE; - if ($configured) { - return; - } - $configured = TRUE; - - $settingsDir = __DIR__ . DIRECTORY_SEPARATOR . 'settings'; - if(is_dir($settingsDir) && !in_array($settingsDir, $metaDataFolders)) { - $metaDataFolders[] = $settingsDir; - } +function _databcgeocode_civix_civicrm_entityTypes(&$entityTypes) { + $entityTypes = array_merge($entityTypes, []); } diff --git a/databcgeocode.php b/databcgeocode.php index c6fc6ea..b360047 100644 --- a/databcgeocode.php +++ b/databcgeocode.php @@ -11,17 +11,6 @@ function databcgeocode_civicrm_config(&$config) { _databcgeocode_civix_civicrm_config($config); } -/** - * Implements hook_civicrm_xmlMenu(). - * - * @param $files array(string) - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_xmlMenu - */ -function databcgeocode_civicrm_xmlMenu(&$files) { - _databcgeocode_civix_civicrm_xmlMenu($files); -} - /** * Implements hook_civicrm_install(). * @@ -31,15 +20,6 @@ function databcgeocode_civicrm_install() { _databcgeocode_civix_civicrm_install(); } -/** - * Implements hook_civicrm_uninstall(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_uninstall - */ -function databcgeocode_civicrm_uninstall() { - _databcgeocode_civix_civicrm_uninstall(); -} - /** * Implements hook_civicrm_enable(). * @@ -49,79 +29,6 @@ function databcgeocode_civicrm_enable() { _databcgeocode_civix_civicrm_enable(); } -/** - * Implements hook_civicrm_disable(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_disable - */ -function databcgeocode_civicrm_disable() { - _databcgeocode_civix_civicrm_disable(); -} - -/** - * 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 http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_upgrade - */ -function databcgeocode_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { - return _databcgeocode_civix_civicrm_upgrade($op, $queue); -} - -/** - * Implements hook_civicrm_managed(). - * - * Generate a list of entities to create/deactivate/delete when this module - * is installed, disabled, uninstalled. - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_managed - */ -function databcgeocode_civicrm_managed(&$entities) { - _databcgeocode_civix_civicrm_managed($entities); -} - -/** - * Implements hook_civicrm_caseTypes(). - * - * Generate a list of case-types - * - * Note: This hook only runs in CiviCRM 4.4+. - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_caseTypes - */ -function databcgeocode_civicrm_caseTypes(&$caseTypes) { - _databcgeocode_civix_civicrm_caseTypes($caseTypes); -} - -/** - * Implements hook_civicrm_angularModules(). - * - * Generate a list of Angular modules. - * - * Note: This hook only runs in CiviCRM 4.5+. It may - * use features only available in v4.6+. - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_caseTypes - */ -function databcgeocode_civicrm_angularModules(&$angularModules) { -_databcgeocode_civix_civicrm_angularModules($angularModules); -} - -/** - * Implements hook_civicrm_alterSettingsFolders(). - * - * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_alterSettingsFolders - */ -function databcgeocode_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { - _databcgeocode_civix_civicrm_alterSettingsFolders($metaDataFolders); -} - /** * Implements hook_civicrm_buildForm. * Update the form at settings page: civicrm/admin/setting/mapping?reset=1 @@ -146,3 +53,20 @@ function databcgeocode_civicrm_buildForm($formName, &$form) { )); } +// /** +// * Implements hook_civicrm_postInstall(). +// * +// * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall +// */ +// function databcgeocode_civicrm_postInstall() { +// _databcgeocode_civix_civicrm_postInstall(); +// } + +// /** +// * Implements hook_civicrm_entityTypes(). +// * +// * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes +// */ +// function databcgeocode_civicrm_entityTypes(&$entityTypes) { +// _databcgeocode_civix_civicrm_entityTypes($entityTypes); +// } diff --git a/info.xml b/info.xml index 38c3963..c06e81f 100644 --- a/info.xml +++ b/info.xml @@ -13,14 +13,21 @@ - 2020-08-03 - 1.2 + 2023-01-05 + 1.3 stable - 5.21 + 5.45 - + CRM/DataBCGeocode + 22.12.1 + + menu-xml@1.0.0 + + + +