I'm busy writing a new node type for use with the event and signup modules. This node will (eventually) include several fields for use in the calendar, as well as a function to define a minimum number of participants for each event. (So that when this number isn't reached by the time the notification is sent out, the event is cancelled and a different notification is sent) that's all still to come though.
Right now I have a (hopefully simple) priblem with just my form. I cannot seem to figure it out, so perhaps one of you can help me:
Given the following code:
$form['min_parts'] = array(
'#type' => 'select',
'#name' => 'min_parts',
'#title' => t('Minimum number of participants'),
'#value' => $node->min_parts,
'#options' => array('0', '1', '2', '3', '4',
'5', '6', '7', '8', '9',
'10', '15', '20', '25', '30',
'35', '40', '45', '50', '60',
'70', '80', '90', '100', '250',
'500', '750', '1000', '1500', '2000'),
'#description' => t('The minimum number of participants required to have the event go through'),
'#extra' => FALSE,
'#multiple' => FALSE,
'#required' => TRUE
);
and lower down:
<?php