Views Template Inside of a Module directory.
Most of the time we render Views templates in our theme directory, but rendering Views templates from the module directory is very easy and less complex, below are the steps:
- Create templates folder in your module directory.
- Keep your Views templates files in your newly created templates directory.
- The last step is to implement hook_views_api() refer below for the code to do this.
Comment