/usr/share/drupal6/modules/filefield/views/filefield.views.inc is in drupal6-mod-filefield 3.10-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | <?php
/**
* @file
* Provide views data for filefield.module.
*/
/**
* @defgroup views_filefield_module filefield.module handlers
*
* Includes the handler for the FileField data column.
* @{
*/
/**
* Implementation of hook_views_data()
*/
function filefield_views_data() {
$data = array();
// Extend the files table with an icon field.
$data['files']['icon'] = array(
'title' => t('Icon'),
'help' => t('An icon corresponding to the file MIME type.'),
'real field' => 'filemime',
'field' => array(
'handler' => 'filefield_handler_field_icon',
'click sortable' => FALSE,
),
);
return $data;
}
/**
* Implementation of hook_views_handlers().
*/
function filefield_views_handlers() {
return array(
'info' => array(
'path' => drupal_get_path('module', 'filefield') . '/views',
),
'handlers' => array(
// field handlers
'filefield_handler_field_data' => array(
'parent' => 'views_handler_field_node',
),
'filefield_handler_field_icon' => array(
'parent' => 'views_handler_field',
),
),
);
}
/**
* @}
*/
|