You are here

function views_xhtml_views_plugins in Views Datasource 7

Same name and namespace in other branches
  1. 6 views_xhtml.views.inc \views_xhtml_views_plugins()

Implements hook_views_plugins().

File

views/views_xhtml.views.inc, line 13
Views style plugin to render nodes as XHTML microformats.

Code

function views_xhtml_views_plugins() {
  $formats = views_xhtml_views_formats();
  $additional_themes = array();
  foreach ($formats as $format => $description) {
    $additional_themes['views_views_xhtml_style_' . $format] = 'style';
  }
  $path = drupal_get_path('module', 'views_xhtml') . '/views';
  return array(
    'module' => 'views_xhtml',
    'style' => array(
      'views_xhtml' => array(
        'title' => t('XHTML data document'),
        'path' => $path . '/plugins',
        'help' => t('Displays nodes as XHTML microformats.'),
        'handler' => 'views_plugin_style_xhtml',
        'theme' => 'views_views_xhtml_style',
        'theme file' => 'views_views_xhtml_style.theme.inc',
        'theme path' => $path . '/theme',
        'additional themes' => $additional_themes,
        'uses row plugin' => FALSE,
        'uses fields' => TRUE,
        'uses options' => TRUE,
        'type' => 'normal',
        'help_topic' => 'style-xhtml',
        'even empty' => TRUE,
      ),
    ),
  );
}