By Dimitri 7 December, 2009 - 17:27
Hooks and Handlers
You have to tell Views about your tables using a hook. Views offers 3 hooks:
<?php
hook_views_tables();
hook_views_arguments();
hook_views_default_views();
?>
In addition, Views also supports handlers for a number of tasks, making it possible to customize the behavior of fields when being used. The handlers take various kinds of data, and some of them even allow direct access to the query building object. Care must be used to ensure that manipulating that object doesn't cause the query builder to write SQL that won't parse!