It seems that the 'Spaces' field not not required, so you can leave it empty and this will save a registration with '0' spaces. Why would you want to allow this?
I added the '#required' option to the field (after some Googling), but now I'm wondering: if I update this module, my change (in the 'registration.forms.inc' file) will be lost, right? How can I make a 'custom' section for this?
In the future I'm planning to add functionalit for me to make sure the 'Spaces' field is autocalculated or checked with the contents of other custom fields (like '# children' and '# adults'). I want to stick to the standard module as much as possible, so where would I need to put this code?
I have already Googled this a little bit, but I cannot figure it out 'quickly' and I think an expert will be able to point me to the correct solution (like a custom module as suggested in this post http://stackoverflow.com/questions/1633058/how-do-i-extend-a-contributed...).
Comments
Comment #1
john.oltman commented