In drupal 6, I have an event node type and an event_attend node type.
The event_attend node type has a nodereference to event. In hook_form_alter for the event_attend node type, i added a validation routine.
In the validation routine, i would like to have access to the parent event node. I would like to compare event_attend's date of participation to the date when the event is taking place.
Is there a way of doing this without doing a node_load($nid_of_parent_event)?
I was kind of hoping that somewhere in the $form variable lies data for the parent event's date but I think such is not the case. That is why I am posting the question here.
I am using openatrium 6x by the way. Anyway, I'll just make a query directly to the database to get the parent event's date using the event nid.
Thanks to everyone.