Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm trying to code a token module to produce a token I want to use in an automatic URL alias. The token needs to be the content of a profile field for the author of the node whose URL is being set. I've got this pretty figured out as far as getting the token module started (their TokenSTARTER module makes that pretty easy). My problem is - how do I get the nid of the node whose URL is being set?
Comments
Comment #1
Dave ReidComment #2
Ben Coleman CreditAttribution: Ben Coleman at Accelerated Design, Inc. commented