[SOLVED]Function print project menu bar

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Nolkyz
Posts: 17
Joined: 18 Sep 2014, 12:44
Location: France

[SOLVED]Function print project menu bar

Post by Nolkyz »

Hello,

Who can explain to me how to override the print_project_menu_bar() function who it in html_api.php line 623 ?

Thanks.
Last edited by Nolkyz on 26 Sep 2014, 13:46, edited 1 time in total.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Function print project menu bar

Post by atrol »

This function is not active with default settings.
Why do you activate a function to override it in a second step?
Please use Search before posting and read the Manual
Nolkyz
Posts: 17
Joined: 18 Sep 2014, 12:44
Location: France

Re: Function print project menu bar

Post by Nolkyz »

All my Colleagues want it for a better search by ctrl+f because we have many projects.

I would override it for hide it on start.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Function print project menu bar

Post by atrol »

The clean way where you don't have to touch existing code is to write a plugin.
Disable again option show_project_menu_bar.
Hook to event EVENT_LAYOUT_CONTENT_BEGIN in the plugin.
Write a function that does nearly the same like print_project_menu_bar.
Please use Search before posting and read the Manual
Nolkyz
Posts: 17
Joined: 18 Sep 2014, 12:44
Location: France

Re: Function print project menu bar

Post by Nolkyz »

Thanks atrol !
Post Reply