By yookoala on
Hi,
I'm writing a module that use hook_node_info() to create a new node type. I'd like to make my own set of default theme files include:
- node.tpl.php and
- field.tpl.php
that are used specifically by my module node type. Of course I'd prefer to put these 2 custom files in my module directory (e.g. mymodule/templates/*).
Is there any good way to do it?
Comments
A suggestion
Hi,
You implement hook_theme. Take a look at the source code for the core forum module. That provides you with a great example.
Hope that helps. Good luck.
Thanks
I'll take a look at that.
Thanks.