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'd like to have an Invert checkbox for the Required tamper. This makes it possible to filter out items that have a field filled. For instance, when harvesting tweets, I want to filter out all tweets that have an empty 'source_status_id_str' (these are retweets).
Comment | File | Size | Author |
---|---|---|---|
#5 | 2333547-4-add-invert-to-required.patch | 1.76 KB | BarisW |
Comments
Comment #1
BarisW CreditAttribution: BarisW commentedComment #3
BarisW CreditAttribution: BarisW commentedTry again testbot
Comment #5
BarisW CreditAttribution: BarisW commentedNow with updated tests.
Comment #6
BarisW CreditAttribution: BarisW at LimoenGroen commented8 months later without any review. Anyone?
Comment #7
twistor CreditAttribution: twistor commented+ if (!$settings['invert']) {
We need a empty() check here, since this is a new setting, existing systems won't have it.
I actually think this could be a new plugin, (named empty?). It seems like it will be hard to discover when people are looking through the list.
Comment #9
twistor CreditAttribution: twistor commentedComment #10
BarisW CreditAttribution: BarisW at LimoenGroen commentedGreat, thanks!