function theme_checkboxes

7.x theme_checkboxes($variables)
5.x theme_checkboxes($element)
6.x theme_checkboxes($element)

Returns HTML for a set of checkbox form elements.


$variables: An associative array containing:

  • element: An associative array containing the properties of the element. Properties used: #children, #attributes.

Related topics

35 string references to the theme hook from theme_checkboxes()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

aggregator_admin_form in drupal/modules/aggregator/
Form constructor for the aggregator system settings.
aggregator_categorize_items in drupal/modules/aggregator/
Form constructor to build the page list form.
aggregator_form_aggregator_admin_form_alter in drupal/modules/aggregator/
Implements hook_form_aggregator_admin_form_alter().
aggregator_form_feed in drupal/modules/aggregator/
Form constructor for adding and editing feed sources.
aggregator_form_opml in drupal/modules/aggregator/
Form constructor for importing feeds from OPML.

... See full list


drupal/includes/, line 3157
Functions for form and batch generation and processing.


function theme_checkboxes($variables) {
  $element = $variables['element'];
  $attributes = array();
  if (isset($element['#id'])) {
    $attributes['id'] = $element['#id'];
  $attributes['class'][] = 'form-checkboxes';
  if (!empty($element['#attributes']['class'])) {
    $attributes['class'] = array_merge($attributes['class'], $element['#attributes']['class']);
  if (isset($element['#attributes']['title'])) {
    $attributes['title'] = $element['#attributes']['title'];
  return '<div' . drupal_attributes($attributes) . '>' . (!empty($element['#children']) ? $element['#children'] : '') . '</div>';