I may be misunderstanding as I'm a long way from being a Drupal/PHP expert but I thought validation of CCK fields happens in the hook_field function when the op is 'validate'.

As far as I can see no validation at all takes place in the location_cck_field function.

This seems to have the effect that, in my use case, despite the fact I want the user to be forced into populating the latitude and longitude fields they can leave them blank and the node is still committed.

I am quite willing to have a go at fixing it but I don't know if...

a) I'm on the right track with the issue being lack of hook_field (validate) code
b) How you access the various values entered on the form

If anyone can give me a clue to how to get at the values that I can play with then I'll have stab at least of getting some basic validation that can be built upon.

Ta

Andy

Comments

arcaic’s picture

Nearly two weeks passed. No one else care? I'm I wrong?

arcaic’s picture

Category: support » bug
yesct’s picture

Status: Active » Postponed (maintainer needs more info)

Please check to see if this is still a problem in the new release. If it is, reply with a new summary and set the status back to active.

(Hopefully, we will clear out a lot of issues that are old and fixed in the newest release and be able to fixate on a few issues that are valid still. Thanks for your helping figuring out which kind of issue this is.)

ankur’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing due to lack of follow up.