function theme_radios

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

Returns HTML for a set of radio button form elements.


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

... See full list


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


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