I have a Drupal 7 function named _home()
that is called by the home
URL.
In this function I want to generate HTML output and, returning it. I need to show the resulting HTML to the user. Actually I embed HTML tags (div, tables,b...) inside the function and return to the user. It runs but I think there must be a better way to do it, maybe using templates or themes.
Is there a way to apply a template to the _home
function even if it is not a node/another Drupal object?