function theme_checkboxes

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

Returns HTML for a set of checkbox form elements.

Parameters

$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/aggregator.admin.inc
Form constructor for the aggregator system settings.
aggregator_categorize_items in drupal/modules/aggregator/aggregator.pages.inc
Form constructor to build the page list form.
aggregator_form_aggregator_admin_form_alter in drupal/modules/aggregator/aggregator.processor.inc
Implements hook_form_aggregator_admin_form_alter().
aggregator_form_feed in drupal/modules/aggregator/aggregator.admin.inc
Form constructor for adding and editing feed sources.
aggregator_form_opml in drupal/modules/aggregator/aggregator.admin.inc
Form constructor for importing feeds from OPML.

... See full list

File

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

Code

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>';
}