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.
Ctools access plugin to provide access/visiblity if two values are equal. Supported by a comparison of several values.
Summary
Configure
Comment | File | Size | Author |
---|---|---|---|
#13 | ctools-token_compare_access_plugin-2342613-13.patch | 4.39 KB | maximpodorov |
#1 | ctools-new_access_plugin-2342613.patch | 3.4 KB | m.lebedev |
Selection rules.png | 6.4 KB | m.lebedev |
Comments
Comment #1
m.lebedev CreditAttribution: m.lebedev commentedComment #2
m.lebedev CreditAttribution: m.lebedev commentedComment #3
andypostNice idea, +1 rtbc but that need another pier review
so this requires that entities has to be configured their token view mode
nice to have configured as #1955954: entity_field_value.inc is mostly useless
Comment #4
andypostComment #5
maximpodorov CreditAttribution: maximpodorov commentedToken view mode is not required since global tokens only are supported without specified context of the ctools plugin.
Andrey, do you mean we should add operator setting to the plugin?
Comment #6
andypostsure
Comment #7
m.lebedev CreditAttribution: m.lebedev commentedComment #8
m.lebedev CreditAttribution: m.lebedev commentedI added the conditions comparing the value.
Comment #9
m.lebedev CreditAttribution: m.lebedev commentedFixed bug and added descriptions of the fields.
Comment #10
m.lebedev CreditAttribution: m.lebedev commentedComment #11
DamienMcKennaComment #13
maximpodorov CreditAttribution: maximpodorov commentedHere's the simplified plugin.
Comment #14
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 3 year old patch in #13 to token_equal.inc applied cleanly to the latest ctools 7.x-1.x-dev and if still applicable needs to be reviewed.