You are here

function file_entity_views_plugins in File Entity (fieldable files) 7.3

Same name and namespace in other branches
  1. 7 file_entity.views.inc \file_entity_views_plugins()
  2. 7.2 file_entity.views.inc \file_entity_views_plugins()

Implements hook_views_plugins().

File

./file_entity.views.inc, line 139
Views integration for the file_entity module.

Code

function file_entity_views_plugins() {
  return array(
    'module' => 'views',
    // This just tells our themes are elsewhere.
    'row' => array(
      'file' => array(
        'title' => t('File'),
        'help' => t('Display the file with standard file view.'),
        'handler' => 'views_plugin_row_file_view',
        'base' => array(
          'file_managed',
        ),
        // only works with 'file' as base.
        'uses options' => TRUE,
        'type' => 'normal',
        'help topic' => 'style-file',
      ),
      'file_rss' => array(
        'title' => t('File'),
        'help' => t('Display the file with standard file view.'),
        'handler' => 'views_plugin_row_file_rss',
        'theme' => 'views_view_row_rss',
        'base' => array(
          'file_managed',
        ),
        // only works with 'file' as base.
        'uses options' => TRUE,
        'type' => 'feed',
        'help topic' => 'style-file-rss',
      ),
    ),
  );
}