And here I was worrying about the naming (my reference to thinking it hadn't changed) -- I thought I had heard that the need for explicit file entries removed the need for the hook. <Buzzer> wrong! Thanks! Ayen Designs - quality software the first time, every time!
-----Original Message----- From: Earl Miles <[email protected]> Sender: [email protected] Date: Sun, 10 Oct 2010 21:45:01 To: <[email protected]> Reply-To: [email protected] Subject: Re: [development] Naming a module's view template On 10/10/2010 3:49 PM, [email protected] wrote: > Checking to make sure I'm not having a 'moment' and forgetting > something. This regards Views in D7, but I don't think this has changed > since D6. > > > I have my_module, and it is to have a file that in a non-module > environment would be views-view-table--my-view--page-1.tpl.php > > > In my_module/theme I created my_module-view-table--my-view--page-1.tpl.php > > > In my_module.info I have files[] = > theme/my_module-view-table--my-view--page-1.tpl.php > > > The view displays with is table, but no amount of cache clearing seems > to get this template file recognized. The answer to this question lies in the advanced help for Views. Getting your module to provide a theme template for a view is not automatic. You must register this via hook_theme().
