Elgg
Version 1.11
views
default
input
plaintext.php
Go to the documentation of this file.
1
<?php
15
$vars
[
'class'
] = (array)
elgg_extract
(
'class'
,
$vars
, []);
16
$vars
[
'class'
][] =
'elgg-input-plaintext'
;
17
18
$defaults
= array(
19
'value'
=>
''
,
20
'rows'
=>
'10'
,
21
'cols'
=>
'50'
,
22
'disabled'
=>
false
,
23
);
24
25
$vars
= array_merge(
$defaults
,
$vars
);
26
27
$value
= htmlspecialchars(
$vars
[
'value'
], ENT_QUOTES,
'UTF-8'
);
28
unset(
$vars
[
'value'
]);
29
30
echo
elgg_format_element
(
'textarea'
,
$vars
,
$value
);
elgg_extract
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:1246
elgg_format_element
elgg_format_element($tag_name, array $attributes=array(), $text='', array $options=array())
Format an HTML element.
Definition:
output.php:215
$value
$value
Definition:
plaintext.php:27
$defaults
$defaults
Definition:
plaintext.php:18
$vars
$vars['class']
Definition:
plaintext.php:15
Generated on Fri Aug 29 2025 00:00:38 for Elgg by
1.9.1