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.
Can ns() provide push/pull using some kind of passed variable? This should be documented one way or the other. Current documentation isn't entirely clear.
Comments
Comment #1
Todd Nienkerk CreditAttribution: Todd Nienkerk commentedFixing typo in title.
Comment #2
dvessel CreditAttribution: dvessel commentedPassed variable as which argument?
Taking this example from the readme file:
The second and the optional fourth is expected to be a variable to do its subtractive checking. The others can be from a variable also as long as you feed it the expected type of values.
The first parameter must be a string delimited with a hyphen ending in a numeric. "foo-23" would be processed just as well as "pull-10" or "grid-8". The function is very generic so the prefix string can be pretty much anything. [prefix]-[num]