Closed (outdated)
Project:
Location
Version:
6.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
2 Jun 2009 at 19:11 UTC
Updated:
19 Jul 2016 at 11:58 UTC
Jump to comment: Most recent
Comments
Comment #1
jordotech commentedHi, I'm looking for the same thing... I'm trying to invoke the locationapi hook to enter locative information on a module created content type using module_invoke('location', 'locationapi', etc...)
Comment #2
lucascaro commentedAny news? (subscribing)
Comment #3
jruberto commentedyes please!
function mymodule_locationapi(&$location, $op, $a3, $a4, $a5) { }i kicked it around a little bit and it works (sort of)as expected, similar to nodeapi, tho i'm not totally sure about the "fields" and "virtual fields" operations.
however i will be dipped if I can figure out why phone numbers aren't populated at $op="load" time -- i even changed the weight of my module so it's heavier than location_phone and it's still not in there.
some documentation would be lovely.
Comment #4
John Carbone commentedOn a relevant side note, there is some info for "location.xx.inc: Adding support for an unsupported country." If you install the advanced_help module and go to /help/location/extending. Can't seem to find a way to get that one working without hacking location_get_iso3166_list() in location.inc though, which I'm *really* not a fan of. Anyone have any ideas on that one?
Comment #5
rooby commentedThis is a useful function that definitely needs some doco.
Comment #6
rooby commentedTagging
Comment #7
legolasboClosing old D6 issues as D6 is end of life