I made a repository plugin. It has a select box in a file picker .
I made this conde in print_login() .
-------
$iconsizes[] = (
array('value' => 0,'label' => 'small'),
array('value' => 1,'label' => 'big')
);
$iconsizes[1] = array_merge($iconsizes, array("selected"=> "true"));
//This line seems work well .
$maxicon = new stdClass();
$maxicon->id = 'aid';
$maxicon->type = 'select';
$maxicon->name = 'aname';
$maxicon->options = $iconsizes;
The default vaule was not set . Let me have a hint , please .