I have been toying with integrating node_limitnumber with rules, but I have run into a minor problem.
I am working on creating a special condition that needs to know the settings of the other conditions in the rule. Basically the condition I want to create is going to limit creation of nodes. This condition only takes a numerical argument, but it would need to reference other conditions if they are available. For example it would need to know which node types this is applicable for.
I realize that the information is in the database and with some effort could be recalled, but I just wanted to know if there was some already provided method for using the variables of one condition inside of another condition. If this isn't possible I am open to any suggestions.
Comments
Comment #1
jdwfly commentedHmm, after reading through the documentation again I belive I may have found my answer.
On http://drupal.org/node/298534 I found this...
It looks like $element may have the necessary information for me if a condition is also passed $element.
Comment #2
jdwfly commentedThis isn't going to fulfill my expectations. The $element variable has the current condition/action in it and not all of the conditions/actions for the rule.
Comment #3
jdwfly commentedThis is no longer necessary, I figured out how to do this without needing to do what I first asked.
Comment #4
mitchell commentedUpdated component.