You are here

function template_preprocess_rrssb_button in Ridiculously Responsive Social Sharing Buttons 7.2

Same name and namespace in other branches
  1. 7 rrssb.module \template_preprocess_rrssb_button()

Preprocess function for rrssb_button.

File

./rrssb.module, line 151

Code

function template_preprocess_rrssb_button(&$variables) {

  // Variables are $name, $button, $rrssb
  extract($variables);
  $key = variable_get('rrssb_follow') ? 'follow_url' : 'share_url';
  $rrssb['username'] = $button['username'];
  $variables['link'] = token_replace($button[$key], array(
    'rrssb' => $rrssb,
  ), array(
    'callback' => '_rrssb_urlencode',
  ));
}