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.
Greetings,
I am looking for a way to be able to invert the truth value on a rules condition after it has been checked.
I know how to input a check box on the page using hook_form_alter(), however are there any hooks which will let me edit the truth value before it is validated.
Example.
User clicks checkbox to invert condition Truth Value.
The Rule is Triggered.
Condition is checked and returns TRUE.
a Hook is implemented which takes the TRUE value and sets it FALSE.
FALSE is then returned to the rule.
Rule Fails.
This this even possible?
Thanks.
Comments
Comment #1
LeeUDO CreditAttribution: LeeUDO commentedComment #2
Shabbir CreditAttribution: Shabbir commentedHi,
I am using rules version "7.x-2.6" and i cant find the option "check for truth value" in adding an action. I have a rule made in Drupal 6 and now i want to apply it in my Drupal 7 migrated site. Can you please help me out for the same.
Regards,
Shabbir