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:

  1. Create templates folder in your module directory.
  2. Keep your Views templates files in your newly created templates directory.
  3. The last step is to implement hook_views_api() refer below for the code to do this.

 

Sushant

Drupal Developer

Recent Blogs