function theme_radios

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

Returns HTML for a set of radio button form elements.

Parameters

$variables: An associative array containing:

  • element: An associative array containing the properties of the element. Properties used: #title, #value, #options, #description, #required, #attributes, #children.

Related topics

50 string references to the theme hook from theme_radios()

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_form_aggregator_admin_form_alter in drupal/modules/aggregator/aggregator.processor.inc
Implements hook_form_aggregator_admin_form_alter().
block_admin_configure in drupal/modules/block/block.admin.inc
Form constructor for the block configuration form.
book_admin_settings in drupal/modules/book/book.admin.inc
Form constructor for the book settings form.
book_block_configure in drupal/modules/book/book.module
Implements hook_block_configure().

... See full list

File

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

Code

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