function file_entity_views_data in File Entity (fieldable files) 7
Same name and namespace in other branches
- 7.3 file_entity.views.inc \file_entity_views_data()
- 7.2 file_entity.views.inc \file_entity_views_data()
Implements hook_views_data().
File
- ./
file_entity.views.inc, line 11 - Views integration for the file_entity module.
Code
function file_entity_views_data() {
// File type
$data['file_managed']['type'] = array(
'title' => t('Type'),
'help' => t('The type of the file (for example, "audio", "image", "video", etc).'),
'field' => array(
'handler' => 'views_handler_field_file_type',
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_file_type',
),
'argument' => array(
'handler' => 'views_handler_argument_file_type',
),
);
return $data;
}