I see that this module provides the hook "locationapi", but I don't see any documentation of how to use this hook, other than the source itself. Am I missing something? Thanks. --mjgoins

Comments

jordotech’s picture

Hi, 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...)

lucascaro’s picture

Any news? (subscribing)

jruberto’s picture

yes 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.

John Carbone’s picture

On 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?

rooby’s picture

Title: Location API Docs? » Document hook_locationapi()
Assigned: Unassigned » rooby
Category: support » task

This is a useful function that definitely needs some doco.

rooby’s picture

Issue tags: +hook_locationapi

Tagging

legolasbo’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing old D6 issues as D6 is end of life