You are here

function views_xml_views_plugins in Views Datasource 6

Same name and namespace in other branches
  1. 7 views/views_xml.views.inc \views_xml_views_plugins()

Implementation of hook_views_plugin().

File

./views_xml.views.inc, line 15
Views style plugins to render nodes in the XML data format.

Code

function views_xml_views_plugins() {
  $path = drupal_get_path('module', 'views_xml');
  return array(
    'module' => 'views_xml',
    'style' => array(
      // declare the views_xml_* style plugins
      'views_xml_style' => array(
        'title' => 'XML data document',
        'path' => $path,
        'help' => 'Display a view as an XML document.',
        'handler' => 'views_plugin_style_xml',
        'theme' => 'views_views_xml_style',
        'theme file' => 'views_views_xml_style.theme.inc',
        'theme path' => $path . '/theme',
        'additional themes' => array(
          'views_views_xml_style_raw' => 'style',
          'views_views_xml_style_opml' => 'style',
          'views_views_xml_style_atom' => 'style',
        ),
        'uses row plugin' => FALSE,
        'uses fields' => TRUE,
        'uses options' => TRUE,
        'type' => 'normal',
        'help_topic' => 'style-xml',
        'even empty' => TRUE,
      ),
    ),
  );
}