Replace openlayers_object_load() with direct class call - function no longer exists.

This commit is contained in:
Michael Stenta 2015-07-22 17:34:03 -04:00
parent 42dcf6f349
commit 374eda8da5
1 changed files with 1 additions and 1 deletions

View File

@ -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();