Elgg
Version 2.3
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
$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
);
$vars
$vars['class']
Location input field.
Definition:
location.php:10
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
echo
elgg echo
Translates a string.
Definition:
languages.js:48
elgg_view
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:336
$defaults
$defaults
Definition:
location.php:12
Generated on Sat Dec 21 2024 00:01:05 for Elgg by
1.8.11