You are here

function geolocation_update_8201 in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 geolocation.install \geolocation_update_8201()

Enable Google Maps module by default.

File

./geolocation.install, line 13
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();
}