You are here

function filefield_views_data in FileField 6.3

Implementation of hook_views_data()

Related topics

File

views/filefield.views.inc, line 18
Provide views data for filefield.module.

Code

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;
}