Location: PHPKode > projects > Open Rent Stock > rentstock/ext/smarty/smarty_extensions/function.formvalidation.php
<?php

/**
 * print out hidden input for form validation
 */
function smarty_function_formvalidation($params, &$smarty){
	
	if(defined('FORM_VALIDATION_VALUE') && defined('FORM_VALIDATION_KEY')){
		$str = '<input type="hidden" name="'.FORM_VALIDATION_KEY.'" value="'.FORM_VALIDATION_VALUE.'" />';
		return $str;
	}else{
		die('form_validation not defined');
	}
	return '';
}
?>
Return current item: Open Rent Stock