22 $class[] =
"elgg-field-required";
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_extract_class(array $array, $existing=[])
Extract class names from an array with key "class", optionally merging into a preexisting set.
if(elgg_extract('required', $vars)) $field
elgg_format_element($tag_name, array $attributes=array(), $text='', array $options=array())
Format an HTML element.