Interfaces provided? I'm writing a plugin product from scratch? Are you saying there is an easier way?
PHP Code:
<setting varname="var" displayorder="10">
<datatype>free</datatype>
<optioncode>select:piped
option1|var_option1
option2|var_option1
option3|var_option1
</optioncode>
<validationcode><![CDATA[return in_array($data, array('option1', 'option2', option3'));]]></validationcode>
<defaultvalue>option1</defaultvalue>
</setting>
I found the answer after taking another plugin to pieces ^^ Just incase anyone else is looking.