Elgg  Version 3.0
Go to the documentation of this file.
1 <?php
8 $entity = elgg_extract('entity', $vars);
9 if (!$entity instanceof ElggUser) {
10  return;
11 }
13 echo elgg_view('output/longtext', [
14  'value' => elgg_echo('avatar:upload:instructions'),
15 ]);
17 echo elgg_view_form('avatar/upload', [], $vars);
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_view_form($action, $form_vars=[], $body_vars=[])
Definition: views.php:1318
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
Avatar upload view.
Definition: upload.php:8
Definition: save.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246