Elgg
Version 6.1
|
Go to the source code of this file.
Variables | |
$current_value = (bool) elgg_extract('value', $vars, false) | |
Elgg switch input. More... | |
$vars ['class'] = elgg_extract_class($vars, 'elgg-input-switch') | |
$vars ['switch'] = true | |
$vars ['default'] = 0 | |
$vars ['value'] = 1 | |
$vars ['checked'] = $current_value | |
$current_value = (bool) elgg_extract('value', $vars, false) |
Elgg switch input.
Displays a checkbox input tag used as a switch. Pass a truthy 'value' to have the switch checked/on
Definition at line 11 of file switch.php.
$vars['class'] = elgg_extract_class($vars, 'elgg-input-switch') |
Definition at line 13 of file switch.php.
$vars['switch'] = true |
Definition at line 14 of file switch.php.
$vars['default'] = 0 |
Definition at line 15 of file switch.php.
$vars['value'] = 1 |
Definition at line 16 of file switch.php.
$vars['checked'] = $current_value |
Definition at line 17 of file switch.php.