1. I have a node for example news
  2. I have Message module installed
  3. I've enabled the flag subscribe to user

I want people to be able to subscriber to a user. To get updates on thier latest post.

  1. I want to add the subscriber user flag to the node template for

This is what flag module suggests to do

Placing a flag link on a page

$account = menu_get_object('user');   
print flag_create_link('fools', $account->uid);

How would I add this to a node?


You could create a block with a php filter or create a custom template for that node. You can also alter that node from from template.php


  • Welcome to Drupal Answers! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
    – Mołot
    Jul 10 '14 at 11:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.