What I am looking for: I have a custom node link which, when clicked, displays a custom HTML content (option selections) in a lightbox. I need to pass an argument to the HTML content to generate the HTML code.
What I did: I created a menu callback with one argument, and a template file for this "page" that does the processing and display the HTML content in the lightbox. I guess it's a little bit overkill and it takes quite some time for the whole render to be computed.
Would it be better (faster) to override the render with theme function? If that's the preferred solution, how to do? Create a my_theme_page()
function in template.php
file?
Or can I generate the HTML in the callback function?
Any help would be appreciated.