<div>Hi,</div><div><br></div><div>I&#39;m currently developing a filter module, and I want to activate it based on certain conditions.</div><div>The problem is that the flag is read when the configuration is parsed, and putting </div>

<div>my_module off; inside an if statement has no effect.</div><div><br></div><div>I&#39;m now planning on having my module taking variable that can be modified inside an if statement. But I haven&#39;t been able to find any existing module that does that.</div>

<div><br></div><div>So I was wondering if the usual way to do this was through rewrites to location that have modules enabled or not.</div><div>The problem with that being if you have a lot of conditions then the configuration starts being very hard to follow.</div>

<div><br></div><div>Any ideas on how to deal with this ?</div><div><br></div><div>-- <br>Matthieu Tourne<br><br>
</div>