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.
In PHP we have sprintf function that can help to format some data before output. It is general function, so I think it should be added to feeds_tamper.
Go to link to see a lot of usage examples.
Comment | File | Size | Author |
---|---|---|---|
#3 | sprintf-fixes-2082343-3.patch | 1.94 KB | 5n00py |
feeds_tamper_sprintf.patch | 945 bytes | 5n00py | |
Comments
Comment #1
5n00py CreditAttribution: 5n00py commentedMaybe it need tests or rename plugin ???
Comment #2
twistor CreditAttribution: twistor commentedCan we get an @file doc?
*Format
We can't make this required. I believe it will break the ajax.
This also needs some tests. They should be pretty basic.
See feeds_tamper_plugins.test and add one there. I've been trying to keep them in alphabetical order.
Thanks!
Comment #3
5n00py CreditAttribution: 5n00py commentedHi Twistor, thanks for fast and good review.
I made all changes from #2, but I did not run tests on my local machine. I hope i write it right ))
Just see new patch.
Comment #4
5n00py CreditAttribution: 5n00py commentedOops
Comment #5
twistor CreditAttribution: twistor commentedChanged around some of the wording. Some other just snuck in there as well.
7.x http://drupalcode.org/project/feeds_tamper.git/commit/ef80725
Thanks!
Comment #6
twistor CreditAttribution: twistor commentedI'm not backporting plugins anymore at this point.