Is there a way to add this as a token object so that I can put the publish link in a Drupal automated email?

For example, I am using the rules module to email an admin of the site whenever a content type is created (unpublished by default). I am able to use tokens for different cck fields and things but I am unable to put is a publish link.

Is there a way to add the publish link as a token so that it can be added to things like this? Maybe put it as a cck field, which will then automatically be added to the token list?

Comments

AaronBauman’s picture

Sounds like a valuable feature to me, but I think it would require implementing hook_token_values() and hook_token_list().
see http://drupal.org/documentation/modules/token

Simon Georges’s picture

Version: 6.x-1.4 » 7.x-1.x-dev

All feature requests should go to current branch, as the 6.x-1.x version is not maintained any more.