By bigheadfish on
I create a block by using hook_block in a module.
I want to theme this block based on a tpl file inside the module's installation directory. How should I do?
Thanks,
I create a block by using hook_block in a module.
I want to theme this block based on a tpl file inside the module's installation directory. How should I do?
Thanks,
Comments
You need to define
You need to define hook_theme. The comment provides an example for using a template file. Once you have that setup you can use something like
theme('your_theme_function', ...)to theme the contents in your hook_block.