function hook_node_links_alter in Facebook Like Button 8
File
- ./
fblikebutton.module, line 51
Code
function hook_node_links_alter(array &$node_links, NodeInterface $node, array &$context) {
$view_mode = $context['view_mode'];
// Link area
if ($view_mode == 'teaser' && $teaser_display == 2 || $view_mode == 'full' && $full_node_display == 1) {
$url = fblikebutton_get_node_url($node
->id());
}
$node_links['fblikebutton_field'] = array(
'#theme' => 'fblikebutton',
'#url' => $url,
);
}