function tripal_views_views_handlers
1.x tripal_views.views.inc | tripal_views_views_handlers() |
Implements hook_views_handlers()
Purpose: Register all custom handlers with views where a handler describes either "the type of field", "how a field should be filtered", "how a field should be sorted"
Return value
An array of handler definitions
File
- tripal_views/
tripal_views.views.inc, line 61 - Tripal Views Integration
Code
function tripal_views_views_handlers() {
return array(
'info' => array(
'path' => drupal_get_path('module', 'tripal_views') . '/views/handlers',
),
'handlers' => array(
// Custom Tripal Filter Handlers
'tripal_views_handler_filter_file_upload' => array(
'parent' => 'views_handler_filter',
),
'tripal_views_handler_filter_textarea' => array(
'parent' => 'views_handler_filter',
),
'tripal_views_handler_filter_no_results' => array(
'parent' => 'views_handler_filter'
),
'tripal_views_handler_filter_select_cvterm' => array(
'parent' => 'views_handler_filter_string',
),
'tripal_views_handler_filter_select_string' => array(
'parent' => 'chado_views_handler_filter_string',
),
'tripal_views_handler_filter_sequence' => array(
'parent' => 'chado_views_handler_filter_string',
),
// Custom Tripal Field Handlers
'tripal_views_handler_field_aggregate' => array(
'parent' => 'chado_views_handler_field',
),
'tripal_views_handler_field_sequence' => array(
'parent' => 'chado_views_handler_field',
),
// Join Handlers
'views_handler_join_chado_aggregator' => array(
'parent' => 'views_join',
),
'views_handler_join_chado_through_linking' => array(
'parent' => 'views_join',
),
// Relationship Handlers
'chado_views_handler_relationship' => array(
'parent' => 'views_handler_relationship'
),
'chado_views_handler_relationship_to_node' => array(
'parent' => 'views_handler_relationship'
),
// Wrappers for Default Views Handlers-----
// Field Handlers
'chado_views_handler_field' => array(
'parent' => 'views_handler_field'
),
'chado_views_handler_field_boolean' => array(
'parent' => 'views_handler_field_boolean'
),
'chado_views_handler_field_counter' => array(
'parent' => 'views_handler_field_counter'
),
'chado_views_handler_field_custom' => array(
'parent' => 'views_handler_field_custom'
),
'chado_views_handler_field_date' => array(
'parent' => 'views_handler_field_date'
),
'chado_views_handler_field_markup' => array(
'parent' => 'views_handler_field_markup'
),
'chado_views_handler_field_math' => array(
'parent' => 'views_handler_field_math'
),
'chado_views_handler_field_numeric' => array(
'parent' => 'views_handler_field_numeric'
),
// Filter Handlers
'chado_views_handler_filter_string' => array(
'parent' => 'views_handler_filter_string',
),
'chado_views_handler_filter_boolean_operator_string' => array(
'parent' => 'views_handler_filter_boolean_operator_string',
),
'chado_views_handler_filter_boolean_operator' => array(
'parent' => 'views_handler_filter_boolean_operator',
),
'chado_views_handler_filter_date' => array(
'parent' => 'views_handler_filter_date',
),
'chado_views_handler_filter_equality' => array(
'parent' => 'views_handler_filter_equality',
),
'chado_views_handler_filter_float' => array(
'parent' => 'views_handler_filter_float',
),
'chado_views_handler_filter_numeric' => array(
'parent' => 'views_handler_filter_numeric',
),
// Sort Handlers
'chado_views_handler_sort' => array(
'parent' => 'views_handler_sort'
),
'chado_views_handler_sort_date' => array(
'parent' => 'views_handler_sort_date'
),
'chado_views_handler_sort_formula' => array(
'parent' => 'views_handler_sort_formula'
),
'chado_views_handler_sort_menu_hierarchy' => array(
'parent' => 'views_handler_sort_menu_hierarchy'
),
'chado_views_handler_sort_random' => array(
'parent' => 'views_handler_sort_random'
),
),
);
}