There are many complaints about tokens for parents not working as expected. For examples: see here, here. I propose to use the 'normal' way of asking token to supply token values using 'token_get_values()'. All tokens that are available on the parent node are then made available as parent-???? tokens.
When relativity_token_values() is called, we try to find out if the current node has a parent. If that is the case, I ask all tokens of the parent using the 'token_get_values()' interface. I've made sure we only do this once: we don't want to ask information on grandparents (and further), by introducing the $options['relativity'] parameter.

One minor thing: token.module has to be patched also.
This patch includes the patches from this bug.

CommentFileSizeAuthor
token.recursive.patch2.14 KBthekk
relativity.all_.patch9.49 KBthekk

Comments

thekk’s picture

Status: Active » Needs review