Elgg
Version 1.9
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
input
location.php
Go to the documentation of this file.
1
<?php
10
if
(isset(
$vars
[
'class'
])) {
11
$vars
[
'class'
] =
"elgg-input-location {$vars['class']}"
;
12
}
else
{
13
$vars
[
'class'
] =
"elgg-input-location"
;
14
}
15
16
$defaults
= array(
17
'disabled'
=>
false
,
18
);
19
20
if
(isset(
$vars
[
'entity'
])) {
21
$defaults
[
'value'
] =
$vars
[
'entity'
]->location;
22
unset(
$vars
[
'entity'
]);
23
}
24
25
$vars
= array_merge(
$defaults
,
$vars
);
26
27
echo
elgg_view
(
'input/tag'
,
$vars
);
$vars
if(isset($vars['entity'])) $vars
Definition:
location.php:25
echo
elgg echo
Translates a string.
Definition:
languages.js:43
elgg_view
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:354
$defaults
$defaults
Definition:
location.php:16
Generated on Sat Dec 21 2024 00:00:36 for Elgg by
1.8.11