Go to the source code of this file.
Initial value:= [
'align' => 'vertical'
Displays a radio input field.
$vars['value'] The current value, if any $vars['name'] The name of the input field $vars['options'] An array of strings representing the options for the $vars['options_values'] An associative array of 'value' => ['text' => 'option'] $vars['class'] Additional class of the list. Optional. $vars['align'] 'horizontal' or 'vertical' Default: 'vertical'
Definition at line 13 of file radio.php.
if (!empty($options)&&empty($input_options)) if (empty($input_options)) $id = elgg_extract('id', $vars, '') |
$vars = array_merge($defaults, $vars) |
$vars['class'] = 'elgg-input-radio' |
Initial value:{
elgg_strtolower()
Wrapper function for mb_strtolower().
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition at line 66 of file radio.php.
foreach($input_options as $label=> $option) |