Hey everyone,

I have created a module that creates a new table in the database. I would like to create a view that displays some of the content in this new table. Is there a way to write some code in my module that will enable Views to recognize the new table and allow me to create a view using some of the fields in this table? Thanks.

Comments

karschsp’s picture

I just published something to my blog that (hopefully) explains how you would do this:

http://www.stevekarsch.com/2008/11/30/scratching-itch-myweather-views-2

Here's part one of the series:

http://www.stevekarsch.com/2008/11/08/scratching-itch-building-myweather

hope that helps!
steve

firdous.ali86’s picture

was hoping to see such an article for ages!!
Thanks :)

evoltech’s picture

Is included with the views 2.x modules. The answer to your question is explicitly answered at this link on your site (help/views/api-tables).

hackbloc.org : exploit code not people

markie’s picture

You have the Advanced Help module enabled.

Thanks for Playing