views:

57

answers:

1

I use Rules-Module. I want to add 1 to a cck integer field on an action. Someone told me to create custom token doing this addition.

So, I installed tokenSTARTER module.

Now, how do i access the content profile (I load it in the rules chain) where needed cck field is in?

A: 

This module is very good for that:

http://drupal.org/project/token_custom

lazysoundsystem
How do I access the right field from the content_profile? I still need drupal api knowledge to do it. This module doesn't help me..
EugenA
That module is good for creating custom tokens. I only need to create one though, and I'd prefer the PHP that generates the value for the token be in SVN not in the database. Does anyone have a simple example of how to create your own custom token?
Aaron
Have a look at the API.txt in the token module, which explains about hook_token_values() and hook_token_list().
lazysoundsystem

related questions