You are here

function skype_preprocess_skype_button in Skype 8

Implements hook_preprocess_hook().

File

./skype.module, line 76

Code

function skype_preprocess_skype_button(&$variables) {
  $settings = $variables['settings'];
  $actions = array_filter($settings['actions']);
  $variables['skype_name'] = count($actions) > 1 ? 'dropdown' : array_shift($actions);
  $variables['unique_id'] = uniqid();
  $variables['image_color'] = $settings['image_color'];
  $variables['image_size'] = $settings['image_size'];
}