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.

astonvictor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.