From 374eda8da562b52f69dd235df713b5474909bec9 Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Wed, 22 Jul 2015 17:34:03 -0400 Subject: [PATCH] Replace openlayers_object_load() with direct class call - function no longer exists. --- farm_area.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/farm_area.module b/farm_area.module index 44aa5c4d..0a2bc0df 100644 --- a/farm_area.module +++ b/farm_area.module @@ -235,7 +235,7 @@ function farm_area_page_build(&$page) { if (current_path() == 'farm') { // Load the areas map. - $map = openlayers_object_load('Map', 'farm_areas'); + $map = \Drupal\openlayers\Openlayers::load('Map', 'farm_areas'); // Build the map and add it to the page content. $page['content']['farm_areas'] = $map->build();