You are here

function _fb_social_like_preprocess_fb_social_plugin in Facebook social plugins integration 7.2

Same name and namespace in other branches
  1. 6.2 plugins/fb_plugin/like.inc \_fb_social_like_preprocess_fb_social_plugin()
1 string reference to '_fb_social_like_preprocess_fb_social_plugin'
like.inc in plugins/fb_plugin/like.inc

File

plugins/fb_plugin/like.inc, line 154

Code

function _fb_social_like_preprocess_fb_social_plugin(&$variables) {
  $options =& $variables['options'];
  $options['send'] = $options['send'] ? "true" : "false";
  $options['show_faces'] = $options['show_faces'] ? "true" : "false";
  $options['href'] = empty($options['href']) ? $url = fb_social_url($_GET['q']) : $options['href'];
}