theme_checkboxes

  1. drupal
    1. 4.7
    2. 5
    3. 6 form.inc
    4. 7 form.inc
Versions
4.7 – 6 theme_checkboxes($element)
7 theme_checkboxes($variables)

Format a set of checkboxes.

Parameters

$element An associative array containing the properties of the element.

Return value

A themed HTML string representing the checkbox set.

Related topics

Code

includes/form.inc, line 966

<?php
function theme_checkboxes($element) {
  if ($element['#title'] || $element['#description']) {
    return theme('form_element', $element['#title'], $element['#children'], $element['#description'], NULL, $element['#required'], form_get_error($element));
  }
  else {
    return $element['#children'];
  }
}
?>