<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Smarty plugin
 *
 * Type:     modifier<br>
 * Name:     money<br>
 * Date:     Jui 17, 2007
 * Purpose:  convert to d.dd
 * Input:<br>
 *         - contents = contents to replace
 *         - preceed_test = if true, includes preceeding break tags
 *           in replacement
 * Example:  {$text|money}
 * @link
 *          money (Smarty online manual)
 * @version  1.0
 * @author   Julien Lacroix <julien at verygames dot net>
 * @param string
 * @return string
 */
function smarty_modifier_money($string)
{
    return money_format('%i', $string);
}

/* vim: set expandtab: */

?>
