function sms_sendtophone_field_formatter in SMS Framework 6
Same name and namespace in other branches
- 5 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_field_formatter()
- 6.2 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_field_formatter()
Implementation of hook_field_formatter().
File
- modules/
sms_sendtophone/ sms_sendtophone.module, line 320
Code
function sms_sendtophone_field_formatter($field, $item, $formatter, $node) {
switch ($formatter) {
case 'sms_sendtophone':
$text = check_plain(strip_tags($item['value']));
if ($text) {
return $text . theme('sms_sendtophone_field', $text);
}
}
}