Closed (fixed)
Project:
Geofield
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2013 at 10:45 UTC
Updated:
5 Oct 2014 at 15:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bneil commentedComment #2
rdeboerGreat patch and great little module!
The patch is simple and would further improve Geofield's already great architecture.
See the discussion at https://drupal.org/comment/8528069#comment-8528069
Rik
Comment #3
mglamanI don't have a chance to reroll patch at the moment, but you're calling $plugins:
module_load_include('inc', $plugins[$plugin]['module'], $plugins[$plugin]['path']. $handlers[$plugin]['class']);when it should be $handlers, I believe
module_load_include('inc', $handlers[$plugin]['module'], $handlers[$plugin]['path']. $handlers[$plugin]['class']);Comment #4
rdeboerAgree with mglaman in #3. Typo. Here's a new patch.
EDIT try the patch from #12.
Stijn.blomme's idea for the original patch is simple, elegant, low-risk, yet hugely important in allowing other modules to add proximity plugins to Geofield, without Geofield having to know about the modules.
So it avoids Geofield maintainers having to put ugly
if (module_exists('someonesmodule')) { ... .}every time someone has convinced them of a useful plugin.For starters, his idea allows me to redo https://drupal.org/comment/8528069 inside ip_geoloc (where it belongs), rather than making it as part of Geofield.
Stijn.blomme's patch makes for a much cleaner and more maintainable Geofield architecture.
Please Brandonian, apply the patch from #12, so we can all build on it in our own modules.
Rik
Comment #5
rdeboerComment #6
rdeboerSorry typo in my patch. New patch attached.
Comment #7
rdeboerThis patch adds some robustness to the previous one, avoiding WSODs in case typos were made in the plugin name or file spec.
This patch, if chosen, needs to be applied instead of the one in the previous comment, NOT in addition too.
Comment #8
vlooivlerke commentedHi, Rik
when applying patch against 7.x-2.x-dev the top part does not apply.
giving me the following ajax error when trying to add the proximity filter
I manually patch it, but then noticed that it is a bit different than what the patch sugests
the
part is not in the patch
Comment #9
rdeboerRe #8:
The bit you tried to change manually is near line 141. It is very similar to the lines near 107, which is what the patch changes.
However the lines near 141 do, on second observation, need a similar treatment for the case where old Views are converted to the new style.
I'll produce a new patch soon.
Rik
Comment #10
pixelsweatshop commentedCan confirm #8. Any chance you have that updated patch, Rik? I tried to give it a go but it my attempt was messy.
Comment #11
vlooivlerke commentedPlay with this version of Rik's geofield
its got some superhero stuff build in, and works
Comment #12
rdeboerReran the patch. Hopefully this one applies without issues.
The patch is against Geofield branch 7.x-2.x
Comment #13
rdeboerHere's Geofield 7.x-2.x with the above patch from #12 attached as a read-to-install module.
Comment #15
Brandonian commentedThanks for the patch, @RdeBoer. Committed to 7.x-2.x
https://www.drupal.org/commitlog/commit/19248/8e32d16fdb69569ec7c91a4c7f...