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 using Date for this field.
To get "nid" I can use $node->nid;
if using "Execute custom PHP code" as Action.
But if in Action I choose "Set a data value", and then inside it using "Data Selection" getting "nid" looks impossible.
Right now, I'm still struggling getting nid
to be available. Use $node->nid;
gives an error.
So what is the exact code to get "nid" in this area?
Comments
Comment #0.0
Rockland Steel CreditAttribution: Rockland Steel commentedadd
Comment #0.1
Rockland Steel CreditAttribution: Rockland Steel commentedadd more
Comment #1
TR CreditAttribution: TR commentedAssuming node is in context, node:nid should be available in the data selection. Or use [node:nid] in direct input.