Elgg  Version master
email.php
Go to the documentation of this file.
1 <?php
9 $value = elgg_extract('value', $vars);
10 unset($vars['value']);
11 
12 if (empty($value)) {
13  return;
14 }
15 
16 $vars['href'] = "mailto:{$value}";
17 $vars['encode_text'] = true;
18 $vars['text'] = elgg_extract('text', $vars, $value);
19 $vars['allowed_schemes'] = ['mailto'];
20 
21 echo elgg_view('output/url', $vars);
$vars['class']
Elgg email input Displays an email input field.
Definition: email.php:9
$value
Elgg email output Displays an email address that was entered using an email input field...
Definition: email.php:9
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156