function _fb_social_send_nodeapi_view in Facebook social plugins integration 7.2
Same name and namespace in other branches
- 6.2 plugins/fb_plugin/send.inc \_fb_social_send_nodeapi_view()
nodeapi_view callback for this plugin
File
- plugins/
fb_plugin/ send.inc, line 119
Code
function _fb_social_send_nodeapi_view($preset, &$node, $view_mode = 'full') {
if ($node->status && fb_social_preset_node_types($preset, $node->type) && $preset->settings['plugin_location']['location']) {
if (!empty($preset->settings['plugin_location']['node_view_modes'][$view_mode])) {
$preset->fb_attrs['href'] = fb_social_url('node/' . $node->nid);
$output = fb_social_preset_view($preset);
$node->content['fb_social_' . $preset->name] = array(
'#markup' => $output,
'#weight' => 15,
);
}
}
}