The edit stage provides you with the ability to add additional fields for the user to enter when they create a new thread or edit an existing thread.
Here all we are doing is creating a drop down combo box with a selection of items to choose from and appending it to the $output variable:
PHP Code:
$output .= "Rating: <SELECT name=\"custom1[my_rating]\">
<OPTION value=\"G\">G - General Audiences</OPTION>
<OPTION value=\"PG\">PG - Parental Guidance</OPTION>
<OPTION value=\"PG13\">PG13 - Children under 13 are too cute for this movie</OPTION>
<OPTION value=\"R\">R - Under 17's not admitted without parents</OPTION>
<OPTION value=\"X\">X - It marks the spot</OPTION>
</SELECT>";
NOTE:
Your HTML elements need to be named custom1[MYVARNAME] in order to work. You MYVARNAME should be unique as well!
Another note:
Whatever output you want to produce MUST be APPENDED to the $output variable. In other words:
PHP Code:
$output = 'my stuff';
IS BAD while
PHP Code:
$output .= 'my stuff';
is good! If you use the former, then you may overwrite other module output.