Menu

#2783 alter the menu "Username" / report link button

open
nobody
None
1
2023-07-05
2023-07-05
Anonymous
No

Running 1.11.1 I want to change the way the function print_report_link(User $user) in file header.inc acts. I want to replace the link to user's report page with a fixed menu: mydomain.com/account

How can I do this?

Discussion

  • Campbell Morrison

    Try

    function print_report_link(User $user)
    {
      echo '<a href="https://mydomain.com/account">Your text</a>';
    }
    
     
  • Anonymous

    Anonymous - 2023-07-05

    Thank you!