I have a custom form that displays a form element of about 2 dozen checkboxes. I would like to output them 3 per row, in a table if possible. How can I go about doing that?
$form['preference'] = array(
'#type' => 'checkboxes',
'#default_value' => 1373,
'#required' => TRUE,
'#title' => 'Choose all that apply',
'#options' => $preference_options,
'#prefix' => '<div id="preference-options">',
'#suffix' => '</div>',
);