You are here

function theme_sms_sendtophone_field in SMS Framework 7

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. 6 modules/sms_sendtophone/sms_sendtophone.module \theme_sms_sendtophone_field()

Theme function for sms_sendtophone_field.

1 theme call to theme_sms_sendtophone_field()
sms_sendtophone_field_formatter_view in modules/sms_sendtophone/sms_sendtophone.module
Implements hook_field_formatter_view().

File

modules/sms_sendtophone/sms_sendtophone.module, line 357
Provides various tools for sending bits of information via SMS.

Code

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