function geolocation_update_8201 in Geolocation Field 8.3
Same name and namespace in other branches
- 8.2 geolocation.install \geolocation_update_8201()
Enable Google Maps module by default.
File
- ./
geolocation.install, line 11 - Sth sth dark side.
Code
function geolocation_update_8201(&$sandbox) {
// Enable geolocation_google_maps.
if (!\Drupal::service('module_handler')
->moduleExists('geolocation_google_maps')) {
\Drupal::service('module_installer')
->install([
'geolocation_google_maps',
]);
}
drupal_flush_all_caches();
}