I want to use a '#type' => 'checkboxes' render array to display some checkboxes on the page. They aren't going to be part of a form that ever gets submitted, as they are purely for browser-side user interaction. So I don't need any of the extra functionality provided by drupal_get_form(). I just need a few <input type="checkbox">
elements.
Unfortunately, Drupal appears to simply refuse to render '#type' => 'checkboxes' render arrays unless you pass the array through drupal_get_form()
. When I try, absolutely nothing except
<div class="form-item form-type-checkboxes">
<label>Landmarks</label>
<div class="form-checkboxes"></div>
</div>
gets rendered.
Is there any way to get Drupal to render an <input type="checkbox">
element without using drupal_get_form()
?