23 unset(
$vars[
'align']);
24 $vars[
'class'][] =
"elgg-fieldset-$align";
27 unset(
$vars[
'justify']);
29 $vars[
'class'][] =
"elgg-justify-$justify";
33 unset(
$vars[
'legend']);
36 unset(
$vars[
'fields']);
40 $vars[
'class'][] =
'elgg-fieldset-has-legend';
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
elgg_extract_class(array $array, $existing=[])
Extract class names from an array with key "class", optionally merging into a preexisting set...
$vars['class']
Renders a set of fields wrapped in a <fieldset> tag.
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
if(elgg_extract('required', $vars)) $field
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.