Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How do you do this? (for example on user-page.php.tpl
Like:
php print flag_create_link('follow', $node->uid);
but this is not working, i see it must be something more custom like bellow, (but not working, variable not exposed where i need it). Probably there is other way to create it in template file?
php flag_create_link('follow', $heartbeatActivity->uaid);
Comments
Comment #1
fraweg CreditAttribution: fraweg commentedHello, maybe you can activate the PHP Module in the Drupal Code and create a block with this code and place it on the userpage. Best regards
Frank
Comment #2
CliveCleaves CreditAttribution: CliveCleaves commentedThis might be what you're looking for