Here is a small patch to add a token to get the email address of a user referenced with a CCK user reference field. This is especially useful with workflow_ng to send email to an "assigned user" or similar in a workflow.

Comments

greggles’s picture

Project: Token » Content Construction Kit (CCK)
Version: 5.x-1.11 » 6.x-2.x-dev
Component: Code » userreference.module

This should be implemented in CCK itself.

asciikewl’s picture

Project: Content Construction Kit (CCK) » Token
Version: 6.x-2.x-dev » 5.x-1.9
Component: userreference.module » Code

The patch if for token 5.x-1.9 where the related code is in token_ckk.inc. I see for D6 the equivalent code is in CCK 2.0 I'll do a patch for that soon, yet this patch is definitely for token 5.x-1.9 as all the related code for the other CCK tokens are here in token_cck.inc

The previous patch had a problem that I've fixed, new patch attached.

Anton

greggles’s picture

Status: Needs review » Needs work

Ok. Seems reasonable. But the new patch is not attached.

greggles’s picture

Status: Needs work » Postponed

Also, if you could please get this committed to cck in 6.x first and then I will commit it here.

asciikewl’s picture

Lets try attaching the new diff this time :)

I've made the patch for CCK2 and submitted it here http://drupal.org/node/272949

Anton

asciikewl’s picture

StatusFileSize
new890 bytes
eafarris’s picture

subscribing.

dave reid’s picture

Status: Postponed » Closed (won't fix)

At this point the Druapl 5 version is closed to feature requests. Marking this issue as won't fix.

greggles’s picture

And this is theoretically possible in D7 version of token with chainable tokens.

off’s picture

subscribe