0
0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2024-11-21 23:47:57 +00:00
salesagility_SuiteCRM/include/Smarty/plugins/function.sugar_literal.php

23 lines
427 B
PHP

<?php
/**
* by passes the smarty parsing for the detail view.
* Smarty {sugar_literal} function plugin
*
* example
* {sugar_literal content=$vardef.value}
*
*
* @param array $params
* @return string with content wrapped around with literals
*/
function smarty_function_sugar_literal($params)
{
$content = '';
if (!isset($params['content'])) {
return $content;
}
return $params['content'];
}