I have created a custom token. Inside my token's code, I'm getting a node object. I want to give the users the option of displaying this node's properties. So, for example, assuming that my token's name is
[mycustomtoken] I want them to be able to write:
[mycustomtoken:author] so that they get the node's author or
[mycustomtoken:title] to get the node's title.
Is there a way to do this in Drupal?