This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/includes/smarty/plugins/function.grid_bool.php
2008-11-26 14:50:40 -08:00

20 lines
438 B
PHP

<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: function
* Name: grid_boo
* Purpose: Formats boolean fields to translated true/false value
* -------------------------------------------------------------
*/
function smarty_function_grid_bool($params, &$smarty)
{
extract($params);
if(!empty($bool))
echo translate('true');
else
echo translate('false');
}
?>