You are here

function theme_sms_sendtophone_field in SMS Framework 6

Same name and namespace in other branches
  1. 5 modules/sms_sendtophone/sms_sendtophone.module \theme_sms_sendtophone_field()
  2. 6.2 modules/sms_sendtophone/sms_sendtophone.module \theme_sms_sendtophone_field()
  3. 7 modules/sms_sendtophone/sms_sendtophone.module \theme_sms_sendtophone_field()
1 theme call to theme_sms_sendtophone_field()
sms_sendtophone_field_formatter in modules/sms_sendtophone/sms_sendtophone.module
Implementation of hook_field_formatter().

File

modules/sms_sendtophone/sms_sendtophone.module, line 331

Code

function theme_sms_sendtophone_field($text) {
  $link = l(t('Send to phone'), 'sms/sendtophone/field', array(
    'title' => t('Send this text via SMS.'),
    'class' => 'sms-sendtophone',
  ), 'text=' . urlencode($text) . '&' . drupal_get_destination());
  return '<span class="sms-sendtophone-field">' . $text . '</span> (' . $link . ')';
}