From 6e6164d225afab100da4984ebfe97cd48bb89677 Mon Sep 17 00:00:00 2001 From: "Frederic G. MARAND" Date: Fri, 25 Jan 2013 11:10:41 +0100 Subject: [PATCH] Fix the path/file declaration for behaviors. --- includes/openlayers.behaviors.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/includes/openlayers.behaviors.inc b/includes/openlayers.behaviors.inc index fe582b9..8c700cc 100644 --- a/includes/openlayers.behaviors.inc +++ b/includes/openlayers.behaviors.inc @@ -10,7 +10,7 @@ * */ function _openlayers_openlayers_behaviors() { - return array( + $ret = array( 'openlayers_behavior_attribution' => array( 'title' => t('Attribution'), 'description' => t('Allows layers to provide attribution to the map if it exists.'), @@ -266,4 +266,10 @@ function _openlayers_openlayers_behaviors() { ), ), ); + + foreach ($ret as $name => $info) { + $ret[$name]['behavior']['path'] = $info['path']; + $ret[$name]['behavior']['file'] = $info['file']; + } + return $ret; } -- 1.7.9.5