Add a "Like" button after "Edit" and "Reply" links How can I add a Like link using the Flag Module, exactly after the Edit and the Reply links?



I know I must use print flag_create_link('bookmarks', $node-&gt;nid);, but I don't know exactly where to place it.
Implement hook_node_view() in a custom module that you create.

$node-&gt;content['links'][] = array(
  '#markup' =&gt; flag_create_link('bookmarks', $node-&gt;nid),
);


Or use the function MY_THEME_preprocess_node() in your template.php and add:

function MY_THEME_preprocess_node(&amp;$variables) {
  $node = $variables['node'];
  $variables['content']['links'][] = flag_create_link('bookmarks', $node-&gt;nid);
}


Replace MY_THEME with the name of your theme.
Some reading that might help you: http://www.whenwhowhere.com/tech-blog/add-variable-theme-template-files-drupal-7