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.
Can anyone please tell me how to remove the link to View the recent blog entries link on the user page?
Comments
Comment #2
robotjox CreditAttribution: robotjox commentedThere might be better ways, but I did it using hook_user_view_alter in a custom module:
Comment #3
i.bajrai CreditAttribution: i.bajrai commented@robotjox that's the right approach, but the better way would have been:
You want to remove the whole part of the render array, not just the #markup.
Comment #4
nevergone CreditAttribution: nevergone commented