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