You are here

function theme_sms_sendtophone_filter_inline_text in SMS Framework 6

Same name and namespace in other branches
  1. 5 modules/sms_sendtophone/sms_sendtophone.module \theme_sms_sendtophone_filter_inline_text()
  2. 6.2 modules/sms_sendtophone/sms_sendtophone.module \theme_sms_sendtophone_filter_inline_text()
  3. 7 modules/sms_sendtophone/sms_sendtophone.module \theme_sms_sendtophone_filter_inline_text()

File

modules/sms_sendtophone/sms_sendtophone.module, line 161

Code

function theme_sms_sendtophone_filter_inline_text($text, $format) {
  $link = l(t(variable_get("sms_sendtophone_filter_inline_display_text_{$format}", 'Send to phone')), 'sms/sendtophone/inline', array(
    'title' => t('Send the highlighted text via SMS.'),
    'class' => 'sms-sendtophone',
  ), 'text=' . urlencode($text) . '&' . drupal_get_destination());
  return '<span class="sms-sendtophone-inline">' . $text . '</span> (' . $link . ')';
}