Using Views Programmatically
Video by Variant Studios
This session will cover progressing beyond simply configuring and using views to creating and modifying views programmatically with both views hooks and views templates.
Despite not being a part of Drupal 6 or 7 core, Views has become a cornerstone to nearly every Drupal site. And while Views provides some wonderful out of the box tools such as exposed filters, paging and sorting, it's often frustrating for developers who are accustomed to creating complex sql queries and other data manipulation to work within the confines of the standard views user interface. This presentation will aim to provide developers the information to break them free of the view ui.
The session will include
- Creating views in code - allow your modules to create views and a discussion of why you should do this.
- Modifying views output - we'll discuss views templates and focus on views hooks so you'll know when and where to manipulate data to get the results you need.
- Query altering - for the hard core SQL folks, we'll discuss how to modify view's SQL queries to perform operations that are difficult or impossible with the standard views UI.
This session has a companion demo module available from: http://drupal.org/sandbox/jyee/1180682