You are here

function theme_facebookshare in Facebook Share 7

Same name and namespace in other branches
  1. 6.3 facebookshare.module \theme_facebookshare()
  2. 6 facebookshare.module \theme_facebookshare()

Themes facebook share button box

1 theme call to theme_facebookshare()
facebookshare_node_view in ./facebookshare.module
Implements hook_node_view()

File

./facebookshare.module, line 119
Adds a button to a node to share on a user's Facebook stream

Code

function theme_facebookshare($variables) {
  $url = $variables['url'];
  $output = '<div class="facebookshare-box">';
  $output .= theme('facebookshare_button', array(
    'url' => $url,
    'size' => check_plain(variable_get('facebookshare_size', '')),
    'text' => check_plain(variable_get('facebookshare_text', '')),
  ));
  $output .= '</div>';
  return $output;
}