* Name: sugar_translate
* Purpose: translates a label into the users current language
*
* @author Majed Itani {majed at sugarcrm.com
* @param array
* @param Smarty
*/
function smarty_function_sugar_phone($params, &$smarty)
{
if (!isset($params['value'])) {
$smarty->trigger_error("sugar_phone: missing 'value' parameter");
return '';
}
// Render the field as a simple `tel:` link if it has a value.
if (isset($params['value'])) {
return ''.$params['value'].'';
}
return $params['value'];
}