Relevant modules installed:
What I have tried:
- Rule 1: activates on user login that displays a system message.
- Rule 2: activates on Webform submission with the condition that the Webform's name is the required name. The rule executes PHP code to disable Rule 1 if true.
/** * Implements hook_update_N(). * Disables name_of_rule rule. */ function hook_update_N() { $rules_config = rules_config_load('name_of_rule'); $rules_config->active = FALSE; $rules_config->save(); }
However, this set of rules is NOT working at the moment.
Concerns:
- If Rule 1 was working, how do I ensure that it permanently disables Rule 1 per user, and not globally?
- Is there a better way to do this?
- For example, all I should need is one rule: On user login + if a Webform has not been filled out, display a message. However, I have not been able to find a module that adds the "If Webform has not been filled out" rule.