I would like to go over the fact that elgg_view_input() is DEPRECATED in Elgg v2.3.4
$footer = '';
foreach ($controls as $control) {
$type = elgg_extract('input', $control, 'text');
unset($control['input']);
$footer .= elgg_view_input($type, $control);
}
Use elgg_view_field() instead.
EXAMPLE #1
EXAMPLE #2
EXAMPLE #3
I have been asked this question about 50 times. So I thought I would answer it here in hopes that if anyone else has recently upgraded Elgg this might be of some help.