At the moment user properties are already available when the profile module is enabled, because under %profile the whole $user object is accessible. I would like to see that access to the user properties is not dependent on the profile module.
This can be done by the appended patch.
Another option is to introduce a separate %user token.

Comments

quicksketch’s picture

Version: 7.x-3.0-beta4 » 6.x-3.0-beta4
Status: Active » Needs work

Yeah I've been thinking about this too. Though this patch doesn't apply to Drupal 7 since profile_load_profile() doesn't exist in Drupal 7. There we've actually done a full user_load() on the $user object. I think this is the safer approach and we can probably do this in the Drupal 6 3.x version, for consistency if nothing else.

if ($user->uid) {
  $account = user_load($user->uid);
  $special_tokens['unsafe']['%profile'] = (array) $account;
}
quicksketch’s picture

quicksketch’s picture

Status: Needs work » Fixed
StatusFileSize
new763 bytes

Here we are, now we do a full user_load() regardless of profile module, making the full range of user profile options available. Committed to 3.x branches.

quicksketch’s picture

Title: make user properties available in tokens » Load full user object into %profile token

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.