Block individual days

Hi again.

I need a way to forbid events to be scheduled on sundays.
The limits-addon seems to only restrict the allowed datespan, but not individual days.
We achieved this behaviour by editing the blocker-function accordingly, but i would like to keep these files untouched for purpose of easier upgrade.
I guess there is a clean solution already, but I am unable to find it.

regards, Gerrit

Actually there is no simple solution. But as you can see the “limit” extension doesn’t use any internals of scheduler - it uses public events and return true|false to allow or deny operation - you an use the same event to enforce any kind of custom rules.