I need to add some html to specific radio buttons. This is a picture to clarify what I'm looking for:
As you can see I want to add some text to the options. These are radio buttons where you can select one option. This is what I have now:
I've tried adding html with the theme_radio function with suffix like this:
function ppprogram_radio($variables) {
$element = $variables['element'];
$element['#attributes']['type'] = 'radio';
$element['#suffx'] = "<p>just testing</p>";
element_set_attributes($element, array('id', 'name','#return_value' => 'value'));
if (isset($element['#return_value']) && $element['#value'] !== FALSE && $element['#value'] == $element['#return_value']) {
$element['#attributes']['checked'] = 'checked';
}
_form_set_class($element, array('form-radio'));
return '<input' . drupal_attributes($element['#attributes']) . ' />';
}
But that didn't do anything ... . I've also tried adding html to the return but then it's added before my label and I want it after my label.