You are here

function views_export_xls_views_plugins in Views Excel Export 7

Same name and namespace in other branches
  1. 6 views_export_xls.views.inc \views_export_xls_views_plugins()

Implements hook_views_plugins().

File

./views_export_xls.views.inc, line 10
Views include file with views hooks.

Code

function views_export_xls_views_plugins() {
  $path = drupal_get_path('module', 'views_export_xls');
  return array(
    'style' => array(
      'parent' => array(
        // this isn't really a display but is necessary so the file can
        // be included.
        'no ui' => TRUE,
        'handler' => 'views_plugin_style',
        'parent' => '',
      ),
      'xls' => array(
        'title' => t('XLS Feed'),
        'help' => t('Generates an XLS feed from a view.'),
        'handler' => 'views_export_xls_plugin_style_xls',
        'path' => $path . '/views',
        'theme path' => $path,
        'theme' => 'views_export_xls_view_xls',
        'uses fields' => TRUE,
        'uses row plugin' => FALSE,
        'uses options' => TRUE,
        'type' => 'feed',
      ),
    ),
  );
}