You are here

datatables.views.inc in DataTables 6

Same filename and directory in other branches
  1. 7.2 views/datatables.views.inc
  2. 7 views/datatables.views.inc

Datatables view hooks

File

views/datatables.views.inc
View source
<?php

/**
 * @file
 * Datatables view hooks
 */

/**
 * Implementation of hook_views_plugins().
 */
function datatables_views_plugins() {
  $path = drupal_get_path('module', 'datatables') . '/views';
  return array(
    'module' => 'datatables',
    'style' => array(
      'datatables' => array(
        'title' => t('DataTables'),
        'help' => t('Displays rows in a jQuery table.'),
        'path' => $path,
        'theme path' => $path,
        'handler' => 'datatables_style_plugin',
        'parent' => 'table',
        'theme' => 'datatables_view',
        'uses row plugin' => FALSE,
        'uses fields' => TRUE,
        'uses options' => TRUE,
        'type' => 'normal',
      ),
    ),
  );
}

Functions

Namesort descending Description
datatables_views_plugins Implementation of hook_views_plugins().