SuiteCRM-Core/include/Smarty/plugins/function.sugar_literal.php
Dillon-Brown 8e4cc94994 Squashed 'public/legacy/' content from commit 817a12dc0
git-subtree-dir: public/legacy
git-subtree-split: 817a12dc0c30c189f56d5cb1f7dc37a9631bdbe3
2021-03-31 15:37:32 +01:00

22 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'];
}