11 if (!empty(
$vars[
'value'])) {
13 'class' =>
'elgg-state elgg-state-warning',
16 unset(
$vars[
'value']);
28 unset(
$vars[
'max_size']);
elgg_format_bytes(int $size, int $precision=2)
Format bytes to a human readable format.
if(!$php_log) $post_max_size
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_get_ini_setting_in_bytes(string $setting)
Returns a PHP INI setting in bytes.
elgg_import_esm(string $name)
Helper functions for external files like css/js.
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.