22 $input_type = str_starts_with($original_value,
'#') &&
strlen($original_value) === 7 ?
'color' :
'text';
30 'class' =>
'elgg-button-action',
39 'name' =>
"vars[{$name}]",
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
if(!$user||!$user->canDelete()) $name
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
elgg_set_form_footer(string $footer= '')
Sets form footer and defers its rendering until the form view and extensions have been rendered...
elgg_import_esm(string $name)
Helper functions for external files like css/js.
elgg_view_message(string $type, string $body, array $vars=[])
Wrapper function for the message display pattern.
_elgg_services()
Get the global service provider.
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.