function blazy_views_data_alter in Blazy 8.2
Same name and namespace in other branches
- 8 blazy.views.inc \blazy_views_data_alter()
- 7 blazy.views.inc \blazy_views_data_alter()
Implements hook_views_data_alter().
File
- ./
blazy.views.inc, line 11 - Provides views data for blazy.module.
Code
function blazy_views_data_alter(&$data) {
// @todo let's keep it for a while as this can be useful for EB.
$data['file_managed']['blazy_file'] = [
'title' => t('Blazy'),
'help' => t('Displays a preview of a File using Blazy, if applicable.'),
'field' => [
'id' => 'blazy_file',
'click sortable' => FALSE,
],
];
// @todo recheck to use core Media post VEF/ VEM removal.
$data['media_field_data']['blazy_media'] = [
'title' => 'Blazy',
'help' => t('Displays a preview of a Media using Blazy, if applicable.'),
'field' => [
'id' => 'blazy_media',
'click sortable' => FALSE,
],
];
}