Hi,
Here's a rough patch, it could be implemented better but as is I figure it might be useful to others. This adds a settings (admin page and individual signup node pages) for maximum number of signups. When this number of signups is reached the event is closed. It works well for us.
The big flaw/area for improvement is that I just have it set the signups as closed. That means that if you were to go back later on and decide that you want to allow more people to sign up, you'd have to also re-open signups. It would be better to have it so that if you edit it and change the maximum number of signups, it would re-open. I haven't implemented this because that would require some more code to log whether the node was closed due to the max being reached, or due to other actions and I don't have the time to do that right now (perhaps soon I can submit an updated patch).
Before using you need to run mysql command:
alter table signup add max int(10) unsigned
| Comment | File | Size | Author |
|---|---|---|---|
| signup.txt | 8.92 KB | Anonymous (not verified) |
Comments
Comment #1
dwwBefore using you need to run mysql command:
alter table signup add max int(10) unsigned
if this is slated for 4.7.0 and beyond, then you should just add a signup_update_4() that handles this automatically.
that said, this is duplicate with http://drupal.org/node/32482. please look there, see if your approach is different/better, etc, and either merge the approaches, review the other patch in there and update it, etc, etc.
thanks,
-derek