You are here

function openlayers_update_7380 in Openlayers 7.3

Make sure that the submodule service_container_symfony from module service_container is properly enabled.

File

./openlayers.install, line 596
Openlayers module - installation procedure.

Code

function openlayers_update_7380() {
  if (!module_exists('service_container_symfony')) {
    $enabled = module_enable(array(
      'service_container_symfony',
    ));
    if (!$enabled) {
      throw new DrupalUpdateException('Unable to enable the module service_container_symfony from service_container.');
    }
  }
}