You are here

function sms_sendtophone_field_formatter in SMS Framework 5

Same name and namespace in other branches
  1. 6.2 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_field_formatter()
  2. 6 modules/sms_sendtophone/sms_sendtophone.module \sms_sendtophone_field_formatter()

Implementation of hook_field_formatter().

File

modules/sms_sendtophone/sms_sendtophone.module, line 325

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);
      }
  }
}