To get selected value of option you need to set 'value' key with qa_opt('your_option_field_key_here') and you do not need any core hack...
@q2apro.com
Just to corss confirm, if you set 'value' with direct array key than it will always keep selected that item regardless what you have stored in database.
Here is some example: This is for plugin option but the value you can
// set levels options
$levels = array('Expers', 'Editors', 'Moderators');
// form field
array(
'label' => 'Select Level',
'tags' => 'NAME="level_item"',
'id' => 'level_item',
'type' => 'select',
'options' => $levels,
'value' => qa_opt('level_item'), //keep store item selected
),
// set defautl option
function option_default($option) {
switch($option) {
case 'level_item':
return 'Editors';
default:
return null;
}
}
You can get any option of the system either from Admin section or your plugin option using qa_opt()