I’ve recently started working on a custom module in Drupal 6 and I really disliked the idea to use built in functions for tables and/or to use embedded html into my module. So I’ve made a simple system on having a view like system in Drupal 6.
Create a new module, and in the module folder create a directory called views (for eg:). Add the following function in your module
|
|
You can then use the function to include and assign variables to the view:
|
|
And then you’ll be able to just use the variable in your view
|
|