option
*
*/
$defaults = array(
'class' => 'elgg-input-radio',
);
$vars = array_merge($defaults, $vars);
$options = $vars['options'];
unset($vars['options']);
$value = $vars['value'];
unset($vars['value']);
foreach ($options as $label => $option) {
$vars['checked'] = strtolower($option) != strtolower($vars['value']);
$vars['value'] = $option;
$attributes = elgg_format_attributes($vars);
// handle indexed array where label is not specified
// @todo deprecate in Elgg 1.8
if (is_integer($label)) {
$label = $option;
}
echo "
";
}