![]() |
How can I use a hook in a nav tab's title?
I have asked this before, but no one seems to be able to help me.
I was okay before 4.2 because I could order nav tab templates via template hooks, but now it only has hooks for before or after manager tabs. |
Those hooks are deprecated and will go in future versions. Use the new navbar manager instead.
|
Quote:
|
I think you could use a plugin on hook build_navigation_array, and at that point there's an array called $result with the info for each tab. If you have your tab "Identity" value, you can change $result[$identity]['text'] to whatever text you want.
Edit: That plugin will also be called when you go to the Navigation Manager in the adminCP, so make sure you don't do anything that won't work there. You might want to check VB_AREA == 'AdminCP' and not do anything if that's true. |
All times are GMT. The time now is 06:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|