Elgg  Version 1.11
location.php
Go to the documentation of this file.
1 <?php
9 if (isset($vars['entity'])) {
10  $vars['value'] = $vars['entity']->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 echo
Translates a string.
Definition: languages.js:43
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition: views.php:354