Views api related videos

2 replies [Last post]
Last seen: 9 years 1 week ago
Joined: 2010-10-10

Hello everyone,

I have tried to serach all the web as much as I can but I couldn't find a good resource about the views api documentation.
By views api, I don't mean the function names or how they related to eachothers in views module, of course there are some pages that lists all the functions in views but they are not useful if you are not a php expert.

I think it would be great for middle level module developers if you consider to make video series about how to use views module in code. theese are the topics that come to my mind first.

-- How to expose custom tables to views
-- useful views functions that can be used for different scenerios
-- Possible ways to alter / change the views query
-- creating custom different kind of handlers
-- Things to know about the functions / methods in handlers (add_where , add_relationship, join ...)

The list can be extended. I just wanted to make a starting point.

The site is excellent by the way :) please keep up the great work..

Chris Shattuck
Last seen: 9 weeks 5 days ago
Joined: 2009-08-16
Great suggestions, thank you!

Great suggestions, thank you! I'd definitely like to give the Views API some video coverage for sure. Thank you for outlining exactly what you're looking for. There is one video for modifying a Views query in the context of a Features module, but you can use the same technique in any module:

Cheers and thanks again!

Last seen: 9 years 9 weeks ago
Joined: 2011-03-16
How to expose custom tables to views

hi i have been working with such a problem and i have recently solved this issue in two ways in a custom module:

1) i created a module normally with out entities and i exposed my tables to views and it worked perfectly.
2) I Created an entity type and also exposed my custom entity to views and it all worked.

if you need help you can e-mail me at: with your questions and i may be able to help you or direct you where you can get more help.

if you need we can meet at drupal irc channel if you want.

Add to playlist

Add to , or

Add to new playlist:

Add to playlist
This is a member-only feature
But, it's easy to become a member

Add to cart:

Contact us

Below are the supported keyboard shortcuts for our video player.

Start / stop video
Go to next video
Go to previous video
Increase or decrease player speed by 20%
Skip ahead or go back by 15 seconds
Jump to a percentage (2 is 20%, for example)
Toggle full screen
Videos Pricing More Search
BuildAModule Logo Icon BuildAModule Logo Icon
Become a member!
1 month
6 months
10% off
12 months
20% off
All memberships come with the following:
24 / 7 access to the entire 1800+ video library
An innovative video player with a rolling transcript
Extensive Drupal and cross-platform training
A thorough and thoughtful training style
Progress tracking
Take notes on specific video sections
Intuitive multi-user management
How many users?
Go solo with a single user, or give multiple team members access through one account and get discounts by bundling multiple users into a single membership.