Want to get involved in developing SMF, then why not lend a hand on our github!
$fielddef = array( array( 'caption' => "Character Name", 'name' => "charname", 'type' => "text", 'options' => "", 'defaultvalue' => "", 'required' => 1 ),),