You are here

function draggableviews_views_plugins in DraggableViews 7

Same name and namespace in other branches
  1. 6.3 views/draggableviews.views.inc \draggableviews_views_plugins()
  2. 6 draggableviews.views.inc \draggableviews_views_plugins()
  3. 6.2 draggableviews.views.inc \draggableviews_views_plugins()

Implemening hook_views_plugins

File

views/draggableviews.views.inc, line 12
Derives the view style plugin

Code

function draggableviews_views_plugins() {
  return array(
    'module' => 'draggableviews',
    // This just tells our themes are elsewhere.
    'style' => array(
      'draggabletable' => array(
        'path' => drupal_get_path('module', 'draggableviews') . '/views',
        'title' => t('Draggable Table'),
        'help' => t('Displays rows in a table and makes them draggable.'),
        'handler' => 'draggableviews_plugin_style_draggabletable',
        'theme' => 'draggableviews_view_draggabletable',
        'theme file' => 'draggableviews_theme.inc',
        'uses row plugin' => FALSE,
        'uses fields' => TRUE,
        'uses options' => TRUE,
        'uses grouping' => FALSE,
        'type' => 'normal',
        'parent' => 'table',
      ),
    ),
  );
}