Elgg  Version 1.9
location.php
Go to the documentation of this file.
1 <?php
10 if (isset($vars['class'])) {
11  $vars['class'] = "elgg-input-location {$vars['class']}";
12 } else {
13  $vars['class'] = "elgg-input-location";
14 }
15 
16 $defaults = array(
17  'disabled' => false,
18 );
19 
20 if (isset($vars['entity'])) {
21  $defaults['value'] = $vars['entity']->location;
22  unset($vars['entity']);
23 }
24 
25 $vars = array_merge($defaults, $vars);
26 
27 echo elgg_view('input/tag', $vars);
if(isset($vars['entity'])) $vars
Definition: location.php:25
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
$defaults
Definition: location.php:16