Elgg
Version 2.3
views
default
input
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
);
elgg_extract_class
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
$vars
$vars['class']
Location input field.
Definition:
location.php:10
$defaults
$defaults
Definition:
location.php:12
elgg_view
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype='')
Return a parsed view.
Definition:
views.php:336
Generated on Fri Aug 29 2025 00:00:47 for Elgg by
1.9.1