Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm running into the problem that openlayers_views is hardcoded to support only two behaviors and won't even invoke the code unless the openlayers_behaviors module is enabled. It looks like it's very possible to have behaviors without the openlayers_behaviors module, and I'd like to run without it, but nothing's getting invoked. I can roll a patch soon about this, although how to handle behaviors with their own options I'm not sure.
Comment | File | Size | Author |
---|---|---|---|
#1 | openlayers_views_style_map_contrib_behaviors.patch | 1.48 KB | tmcw |
Comments
Comment #1
tmcw CreditAttribution: tmcw commentedA patch which simply runs through all behaviors defined in hooks and adds them... this seems to not interact with the existing code, but I haven't thoroughly tested it.
Comment #2
phayes CreditAttribution: phayes commentedIn the long run, we will be providing a hook so that behaviors can define form elements for both views and presets.
I'm a little hesitant to implement tmcw's solutions since some behaviors require other attribute information in order for them to be valid.
Comment #3
zzolo CreditAttribution: zzolo commentedI would say that this is not possible for 1.0. Like phayes said, there are attributes to account for a variable data. This would need to work like CCK field and widget options where a form array could be provided.
This would be nice, and we were thinking along these same lines for the layers. But I think this is out of the scope of 1.0.
I am marking as postponed and post 1.0
Comment #4
phayes CreditAttribution: phayes commentedI'm hoping that maybe ctools can help us with this.
Comment #5
zzolo CreditAttribution: zzolo commentedComment #6
tmcw CreditAttribution: tmcw commentedThis is fixed in code to be ported from 0.x to 2.x.