Elgg  Version 3.0
location.php
Go to the documentation of this file.
1 <?php
10 $vars['class'] = elgg_extract_class($vars, 'elgg-input-location');
11 
13  'disabled' => false,
14 ];
15 
16 if (isset($vars['entity'])) {
17  $defaults['value'] = elgg_extract('entity', $vars)->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_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:1153
elgg echo
Translates a string.
Definition: languages.js:43
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
$defaults
Definition: location.php:12
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246