You are here

function theme_skype_uri in Skype 7

Theme function to render skype URI.

1 theme call to theme_skype_uri()
skype_field_formatter_view in ./skype.module
Implements hook_field_formatter_view().

File

./skype.module, line 302

Code

function theme_skype_uri($vars) {
  $skype_id = $vars['skype_id'];
  $settings = $vars['settings'];
  $link_text = $settings['link_text'];
  $action = $settings['action'] == 'video' ? 'call&video=true' : $settings['action'];
  $output = '<a href="skype:' . $skype_id . '?' . $action . '">' . str_replace('[skype:id]', $skype_id, $link_text) . '</a>';
  return $output;
}