Elgg  Version 2.3
location.php
Go to the documentation of this file.
1 <?php
10 $vars['class'] = elgg_extract_class($vars, 'elgg-input-location');
11 
12 $defaults = array(
13  'disabled' => false,
14 );
15 
16 if (isset($vars['entity'])) {
17  $defaults['value'] = $vars['entity']->location;
18  unset($vars['entity']);
19 }
20 
21 $vars = array_merge($defaults, $vars);
22 
23 echo elgg_view('input/tag', $vars);
$vars['class']
Location input field.
Definition: location.php:10
elgg_extract_class(array $array, $existing=[])
Extract class names from an array with key "class", optionally merging into a preexisting set...
Definition: elgglib.php:1396
elgg echo
Translates a string.
Definition: languages.js:48
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336
$defaults
Definition: location.php:12