Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342