Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
output
location.php
Go to the documentation of this file.
1
<?php
9
if
(isset(
$vars
[
'entity'
])) {
10
$vars
[
'value'
] =
elgg_extract
(
'entity'
,
$vars
)->location;
11
unset(
$vars
[
'entity'
]);
12
}
13
14
// Fixes #4566 we used to allow arrays of strings for location
15
if
(is_array(
$vars
[
'value'
])) {
16
$vars
[
'value'
] =
implode
(
', '
,
$vars
[
'value'
]);
17
}
18
19
echo
elgg_view
(
'output/tag'
,
$vars
);
implode
$vars
$vars['class']
Location input field.
Definition:
location.php:10
elgg_extract
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:256
elgg_view
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition:
views.php:156
Generated on Wed Dec 4 2024 00:00:23 for Elgg by
1.8.11