Elgg  Version master
location.php
Go to the documentation of this file.
1 <?php
9 if (isset($vars['entity'])) {
10  $vars['value'] = elgg_extract('entity', $vars)->location;
11  unset($vars['entity']);
12 }
13 
14 // Fixes #4566 we used to allow arrays of strings for location
15 if (is_array($vars['value'])) {
16  $vars['value'] = implode(', ', $vars['value']);
17 }
18 
19 echo elgg_view('output/tag', $vars);
$vars['class']
Location input field.
Definition: location.php:10
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