Full ELMS Learning Network documentation
function theme_radios
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).cis7 form.inc | theme_radios($variables) |
cle7 form.inc | theme_radios($variables) |
elmsmedia7 form.inc | theme_radios($variables) |
icor7 form.inc | theme_radios($variables) |
meedjum_blog7 form.inc | theme_radios($variables) |
mooc7 form.inc | theme_radios($variables) |
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
183 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.
- advagg_admin_settings_form in sites/
all/ modules/ ulmus/ advagg/ advagg.admin.inc - Form builder; Configure advagg settings.
- advagg_css_compress_admin_settings_form in sites/
all/ modules/ ulmus/ advagg/ advagg_css_compress/ advagg_css_compress.admin.inc - Form builder; Configure advagg settings.
- advagg_js_compress_admin_settings_form in sites/
all/ modules/ ulmus/ advagg/ advagg_js_compress/ advagg_js_compress.admin.inc - Form builder; Configure advagg settings.
- advagg_mod_admin_settings_form in sites/
all/ modules/ ulmus/ advagg/ advagg_mod/ advagg_mod.admin.inc - Form builder; Configure advagg settings.
- aggregator_admin_form in modules/
aggregator/ aggregator.admin.inc - Form constructor for the aggregator system settings.
File
- includes/
form.inc, line 2869 - 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>';
}