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.
This should be a pretty long one and be done in parts. I think I will just add comments as I make commits. So watch out for a bunch of emails.
1) Put in dependency to ctools: http://drupal.org/cvs?commit=267900 DONE. :)
Comments
Comment #1
zzolo CreditAttribution: zzolo commented2) Create new data structure and add update functions.
Things to note:
* Ctools has some various extra fields it uses in the Drupal schema array
* I Think "openlayers_map_presets" table should be renamed to "openlayers_maps" to stick with the conventions. Not going to worry about at the moment. Overall, maybe we should steer away from presets and just use maps, since we are fully introducing layers and styles into all this.
http://drupal.org/cvs?commit=267934
Comment #2
zzolo CreditAttribution: zzolo commentedChanging bulk of map preset infrastructure in core module:
* openlayers_get_presets() is not really needed as openlayers_presets() gets all the presets. This function gets presets in a format for options in a select: openlayers_preset_options()
* http://drupal.org/cvs?commit=267940
Comment #3
zzolo CreditAttribution: zzolo commented3) Created some testing just to make sure things were working in the core module.
* http://drupal.org/cvs?commit=268004
* Its important to note that any modules that want to implement map presets, need to also implement hook_ctools_plugin_api() which threw me off for a loop.
* Next step is to update UI to handle the new preset architecture
Comment #4
zzolo CreditAttribution: zzolo commentedUpdated supplemental modules for changes in core api. Overall it was simple, but the UI module required a lot of work. The UI module will need a once over we convert other things to plugins.
http://drupal.org/cvs?commit=268174
Comment #5
zzolo CreditAttribution: zzolo commentedOh, yeah, gonna close this. I think the bulk of this issue is done.