14 unset(
$vars[
'widget']);
17 $vars[
'name'] =
"params[{$name}]";
19 if (!isset(
$vars[
'label'])) {
23 unset(
$vars[
'label']);
25 if (!isset(
$vars[
'options'])) {
26 $vars[
'options'] = [5, 8, 10, 12, 15, 20];
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
$widget
Widget edit num_display.
elgg echo
Translates a string.
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(!isset($vars['options'])) $value
sanitize_int($int, $signed=true)
Sanitizes an integer for database use.