debut_media.views.inc 575 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * @file
  4. * Views integration for the debut_media module.
  5. */
  6. /**
  7. * Implements hook_views_data().
  8. */
  9. function debut_media_views_data() {
  10. // File rendered
  11. $data['file_managed']['rendered'] = array(
  12. 'title' => t('File'),
  13. 'title_short' => t('File:Rendered'),
  14. 'help' => t('Display the file in a specific view mode.'),
  15. 'field' => array(
  16. 'handler' => 'views_handler_field_file_rendered',
  17. 'click sortable' => TRUE,
  18. 'real field' => 'fid',
  19. 'additional fields' => array(
  20. 'fid',
  21. ),
  22. ),
  23. );
  24. return $data;
  25. }