I'm writing a plugin which presents a navigation dropdown menu. The options on that menu will all be searches but with different parameters.
How do I pass the value of which menu item was selected into the my controller > function to decide what to do.
I'm not talking if or switch statements, I mean actually passing that value to the function.
For the menu I've created a class/listener that listens for navigation_tabs, and adds the menu on via a template. At the moment, the links for each <li> are null, but that ties into my question.
I have a feeling the answer is embarrassingly simple.
BTW the output of each menu choice will be the same, it will be a list of threads as a search result.