option * @uses $vars['class'] Additional class of the list. Optional. * @uses $vars['align'] 'horizontal' or 'vertical' Default: 'vertical' */ $defaults = array( 'align' => 'vertical', 'value' => array(), 'disabled' => false, 'options' => array(), 'name' => '', ); $vars = array_merge($defaults, $vars); $id = ''; if (isset($vars['id'])) { $id = "id=\"{$vars['id']}\""; unset($vars['id']); } $class = "elgg-input-radios elgg-{$vars['align']}"; if (isset($vars['class'])) { $class .= " {$vars['class']}"; unset($vars['class']); } unset($vars['align']); $vars['class'] = 'elgg-input-radio'; if (is_array($vars['value'])) { $vars['value'] = array_map('elgg_strtolower', $vars['value']); } else { $vars['value'] = array(elgg_strtolower($vars['value'])); } $options = $vars['options']; unset($vars['options']); $value = $vars['value']; unset($vars['value']); if ($options && count($options) > 0) { echo "