Tripal 0.3b
tripal_project/tripal_project.views.inc
Go to the documentation of this file.
00001 <?php
00002 
00003 /**
00004  *  @file
00005  *  This file contains the basic functions for views integration of
00006  *  chado/tripal_project tables. Supplementary functions can be found in
00007  *  ./views/
00008  *
00009  *  Documentation on views integration can be found at 
00010  *  http://views2.logrus.com/doc/html/index.html.
00011  */
00012  
00013 /*************************************************************************
00014  * Implements hook_views_data()
00015  * Purpose: Describe chado/tripal tables & fields to views
00016  *
00017  * @return: a data array which follows the structure outlined in the
00018  *   views2 documentation for this hook. Essentially, it's an array of table
00019  *   definitions keyed by chado/tripal table name. Each table definition 
00020  *   includes basic details about the table, fields in that table and
00021  *   relationships between that table and others (joins)
00022  */
00023 function tripal_project_views_data()  {
00024   $data = array();
00025   
00026   return $data;
00027 }
00028 
00029 /*************************************************************************
00030  * Implements hook_views_handlers()
00031  * Purpose: Register all custom handlers with views
00032  *   where a handler describes either "the type of field", 
00033  *   "how a field should be filtered", "how a field should be sorted"
00034  *
00035  * @return: An array of handler definitions
00036  */
00037 function tripal_project_views_handlers() {
00038  return array(
00039    'info' => array(
00040      'path' => drupal_get_path('module', 'tripal_project') . '/views/handlers',
00041    ),
00042    'handlers' => array(
00043 
00044    ),
00045  );
00046 }
 All Classes Files Functions Variables