Permalink
Browse files

feature(forms): elgg_view_input() can now be used to render hidden in…

…puts

elgg_view_input() now checks if input type is hidden, and renders it without all additional
field markup and elements
  • Loading branch information...
hypeJunction committed Nov 3, 2015
1 parent 6301372 commit 8d996cd115e47211e1f631b77f3f269f8fc2674a
Showing with 4 additions and 0 deletions.
  1. +4 −0 engine/lib/views.php
View
@@ -1291,6 +1291,10 @@ function elgg_view_input($input_type, array $vars = array()) {
return '';
}
if ($input_type == 'hidden') {
return elgg_view("input/$input_type", $vars);
}
$id = elgg_extract('id', $vars);
if (!$id) {
$id_num++;

0 comments on commit 8d996cd

Please sign in to comment.