1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
* Views hooks file.
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
/**
|
9 |
|
|
* Implements hook_views_plugins().
|
10 |
|
|
*/
|
11 |
|
|
function ds_views_plugins() {
|
12 |
|
|
$path = drupal_get_path('module', 'ds');
|
13 |
|
|
$views_plugins = array(
|
14 |
|
|
'module' => 'ds',
|
15 |
|
|
'row' => array(
|
16 |
|
|
'ds' => array(
|
17 |
|
|
'title' => t('Display Suite'),
|
18 |
|
|
'help' => t('Display the entity with the Display Suite module.'),
|
19 |
|
|
'handler' => 'views_plugin_ds_entity_view',
|
20 |
|
|
'path' => $path . '/views',
|
21 |
|
|
'base' => array('node', 'comment', 'users', 'apachesolr', 'taxonomy_term_data', 'file_managed', 'micro'),
|
22 |
|
|
'theme' => 'ds_row_entity',
|
23 |
|
|
'uses options' => TRUE,
|
24 |
|
|
'type' => 'normal',
|
25 |
|
|
),
|
26 |
|
|
),
|
27 |
|
|
);
|
28 |
|
|
|
29 |
|
|
if (module_exists('ds_extras') && variable_get('ds_extras_vd')) {
|
30 |
|
|
$views_plugins['row']['ds_fields'] = array(
|
31 |
|
|
'uses fields' => TRUE,
|
32 |
|
|
'title' => t('Display Suite fields'),
|
33 |
|
|
'help' => t('Display fields through the Display Suite module.'),
|
34 |
|
|
'handler' => 'views_plugin_ds_fields_view',
|
35 |
|
|
'path' => $path . '/views',
|
36 |
|
|
'theme' => 'ds_row_fields',
|
37 |
|
|
'theme path' => $path . '/views',
|
38 |
|
|
'theme file' => 'views_plugin_ds_fields_view.inc',
|
39 |
|
|
'uses options' => TRUE,
|
40 |
|
|
'type' => 'normal',
|
41 |
|
|
);
|
42 |
|
|
}
|
43 |
|
|
|
44 |
|
|
return $views_plugins;
|
45 |
|
|
} |