Elgg  Version 3.0
Go to the documentation of this file.
1 <?php
10  '#type' => 'file',
11  '#label' => elgg_echo('entity:edit:icon:file:label'),
12  '#help' => elgg_echo('entity:edit:icon:file:help'),
13  '#class' => 'elgg-entity-edit-icon-file',
14  'name' => elgg_extract('name', $vars, 'icon'),
15  'accept' => 'image/*',
16  'required' => (bool) elgg_extract('required', $vars, false),
17 ]);
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1395
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg echo
Translates a string.
Definition: languages.js:43
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
if(!empty($vars['value'])) $vars['class']
Definition: file.php:19