Smutty

MVC Framework

View Code: function.hidden

Browse: All · Classes · Plugins

1
<?php
2
3
/**
4
* returns the html for a hidden form field
5
*
6
* @param array $params parameters
7
* @param Smarty $smarty smarty object
8
* @return the element html
9
*
10
*/
11
12
function smutty_function_hidden( $params, $smarty ) {
13
14
return Smutty_Smarty::htmlElement( 'input', array(
15
'type' => 'hidden',
16
'name' => Smutty_Smarty::getFieldName(v($params,'name')),
17
'value' => v( $params, 'value' ),
18
'id' => v( $params, 'id' )
19
), $smarty );
20
21
}
22
23
function smarty_function_hidden( $params, $smarty ) {
24
echo smutty_function_hidden( $params, $smarty );
25
}
26
27
?>

The code shown here is the code that is currently running this site. If you want to view the latest SVN version of the code then go to the Subversion repository.