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 would like to activate or deactivate a rule using Rules i.e.
$rules_config->active = FALSE;
or
$rules_config->active = TRUE;
Is this possible?
Comments
Comment #2
kopeboy CreditAttribution: kopeboy commentedYeah I'm interested in this one as well!
For example with VBO one could create a safe list for the client of pre-configured rules to activate/deactivate.
Rules or components of course. Even better: scheduled components!
Comment #3
TR CreditAttribution: TR commentedNo, there is no action that I know of that will allow you to enable/disable a Rule. It should be easy to write one and post it here as a contribution - if it's useful to you it might be useful to someone else, and if there's enough interest we can add it to Rules.