How can I access profile fields with a % variable in Drupal Actions?
Posted
by
Rob Mosher
on Pro Webmasters
See other posts from Pro Webmasters
or by Rob Mosher
Published on 2010-11-11T01:35:46Z
Indexed on
2011/02/20
7:33 UTC
Read the original article
Hit count: 254
drupal
I have an action setup in drupal to e-mail me when a new user registers for the site. Right now it is only telling me their user name (%username). Is there a variable that can access added fields so I can get their real name (First Last), or another way to add this info to the action message? So instead of my new user action having a message like:
"%username created an account" -> "jschmoe created and account"
I could have:
"%first_name %last_name (%username) created an account" -> "Joe Schmoe (jschmoe) created an account".
I'm using Content Profile module for the first and last name fields, though have few enough users at the moment that I could switch to Profile module fields.
© Pro Webmasters or respective owner