Token Starter looks really great, except I'm unable to add a new token through.
I'm trying to get a get a cck date field - which has its already existing token but I need to manipulate the value through timestamp before using it through a schedule email triggered action, basically adding -1 day.

What I've done :
> In tokenSTARTER_token_list function, I've added
$tokens['node']['token-name'] = t("Description");
This part looks to work as I've the token available in my replacement patterns

> In the tokenSTARTER_token_values, I've added
$values['token-name'] = $node->cck_date_field_name;
--> Doesn't work at all. I've tried several more complex ones but it only returns empty datas.

Am I doing something wrong ?
Thanks =

Comments

Dave Reid’s picture

Category: feature » support
Status: Active » Fixed

You'll want to look at how CCK module implements its tokens. I believe you'll have to call some CCK helper functions to get the value.

Status: Fixed » Closed (fixed)
Issue tags: -token cck

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