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 recast an integer into a 9digit (leading 0s) integer, and not sure if (or how) to do this with the rewrite field. can I use a function like: STR_PAD_LEFT? if so, how would I enter this into the Replacement Pattern field? thanks, C
Comments
Comment #1
twistor CreditAttribution: twistor commentedI've added a pad string plugin which will do what you're looking for. Ideally, a plugin that utilizes sprintf syntax would be better for these kinds of things.