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.
Hello,
I'm creating a custom user profile page in which i would like to display the [edit] link to the user when they visit their own profile page on a block, rather than the default main content section. What is the php code to display such a code in the user block?
Thank you.
Comments
Comment #1
akolahi CreditAttribution: akolahi commentedalternativly, how do i print the entire content of the profile module (that is outputted on the user's profile page) somewhere else (such as a block instead of the content sections).
Thank you for any help or direction.
Comment #2
akolahi CreditAttribution: akolahi commentedI'm trying to following code in my block which seems to make sense but is not working:
Any ideas?
Comment #3
akolahi CreditAttribution: akolahi commentedThis did the trick: