You are here

function template_preprocess_fblikebutton in Facebook Like Button 8

Same name and namespace in other branches
  1. 7.2 fblikebutton.theme.inc \template_preprocess_fblikebutton()

Implements template_preprocess().

Formats variables and sanitizes data needed to build the like button.

File

./fblikebutton.theme, line 8

Code

function template_preprocess_fblikebutton(&$variables) {
  $url = urlencode($variables['url']);

  // Ensure we translate the boolean into a string for the url to pass to
  // facebook.
  $show_faces = $variables['show_faces'] ? 'true' : 'false';
}