ds.views.inc in Display Suite 6.2
Same filename and directory in other branches
Views file for ds.
File
views/ds.views.incView source
<?php
/**
* @file
* Views file for ds.
*/
/**
* Implementation of hook_views_plugins().
*/
function ds_views_plugins() {
$path = drupal_get_path('module', 'ds');
return array(
'module' => 'ds',
'row' => array(
'ds' => array(
'title' => t('Display suite object'),
'help' => t('Display the object through the Display suite module.'),
'handler' => 'views_plugin_ds_object_view',
'theme' => 'ds_row_object',
'path' => $path . '/views',
'theme path' => $path . '/theme',
'theme file' => 'theme.inc',
'uses options' => TRUE,
'type' => 'normal',
'help topic' => 'style-node',
),
'ds_fields' => array(
'uses fields' => TRUE,
'title' => t('Display suite fields'),
'help' => t('Display fields through the Display suite module.'),
'handler' => 'views_plugin_ds_fields_view',
'theme' => 'ds_row_fields',
'path' => $path . '/views',
'theme path' => $path . '/theme',
'theme file' => 'theme.inc',
'uses options' => TRUE,
'type' => 'normal',
'help topic' => 'style-node',
),
),
);
}
/**
* Implementation of hook_views_handlers().
*/
function ds_views_handlers() {
return array(
'info' => array(
'path' => drupal_get_path('module', 'ds') . '/views',
),
'handlers' => array(
'ds_handler_field_fieldgroup' => array(
'parent' => 'views_handler_field',
),
),
);
}
/**
* Implementation of hook_views_data().
*/
function ds_views_data() {
$data['displaysuite']['table']['group'] = t('Display suite');
$data['displaysuite']['table']['join'] = array(
'#global' => array(),
);
$data['displaysuite']['fieldgroup'] = array(
'title' => t('Fieldgroup'),
'help' => t('Create a fieldgroup.'),
'field' => array(
'handler' => 'ds_handler_field_fieldgroup',
'click sortable' => FALSE,
),
);
return $data;
}
Functions
Name | Description |
---|---|
ds_views_data | Implementation of hook_views_data(). |
ds_views_handlers | Implementation of hook_views_handlers(). |
ds_views_plugins | Implementation of hook_views_plugins(). |