function fb_social_box_view in Facebook social plugins integration 6.2
Same name and namespace in other branches
- 7.2 fb_social.module \fb_social_box_view()
returns the fbml content of the plugin
1 call to fb_social_box_view()
- fb_social_default::render in plugins/
boxes/ fb_social_default.inc - Implementation of boxes_content::render().
File
- ./
fb_social.module, line 574
Code
function fb_social_box_view($box) {
$plugin_type = $box->fb_plugin_name;
$options = $box->options;
$output = theme('fb_social_plugin', $plugin_type, $options);
if ($plugin_type == 'comments') {
$cache_length = 720;
$nr_comments = 100;
$url = empty($options['href']) ? fb_social_url($_GET['q']) : $options['href'];
module_load_include('inc', 'fb_social', 'plugins/fb_plugin/comments');
$output .= _fb_social_comments_seo($url, $nr_comments, $cache_length);
}
return $output;
}