aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/location.php
blob: d7ae2bbbd0cb5d88de5e43b5019f6dfc6e28c2a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
 * Location input field
 *
 * @uses $vars['entity'] The ElggEntity that has a location
 * @uses $vars['value']  The default value for the location
 */

$defaults = array(
	'class' => 'elgg-input-location',
	'disabled' => FALSE,
);

if (isset($vars['entity'])) {
	$defaults['value'] = $vars['entity']->location;
	unset($vars['entity']);
}

$vars = array_merge($defaults, $vars);

echo elgg_view('input/tag', $vars);