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.
Hi,
When creating a new token in Drupal, is there a way to make sure that the token gets synchronized with LS? I believe there is a variable need_save_dp2ls that could be set on the form when editing a token, but I'm not sure how to set this when creating and saving the token and rules.
Thanks.
Comments
Comment #2
jsibley CreditAttribution: jsibley commentedNever mind, I remembered after I sent this that setting the synchronization direction in the rule might take care of this, and it seems to work. So, in a rule or rule component:
- Create entity
- Set fields
- Set synchronization direction to Drupal to LS
- Save entity
And there should be a new entity in Drupal and Limesurvey.
Case solved
Comment #3
thedut CreditAttribution: thedut commentedHello jsibley,
You are right !
FYI, the 4th step "Save entity" is optional, if you forget it the entity will be saved anyway.