You are here

function datatables_theme in DataTables 1.x

Same name and namespace in other branches
  1. 8 datatables.module \datatables_theme()
  2. 6 datatables.module \datatables_theme()
  3. 7.2 datatables.module \datatables_theme()
  4. 7 datatables.module \datatables_theme()
  5. 2.x datatables.module \datatables_theme()

Implements hook_theme().

File

./datatables.module, line 14
Provides Views integration for the jQuery DataTables plugin.

Code

function datatables_theme($existing, $type, $theme, $path) {
  return [
    'datatable' => [
      'variables' => [
        'header' => NULL,
        'rows' => NULL,
        'attributes' => NULL,
        'caption' => NULL,
      ],
      'file' => 'datatables.theme.inc',
    ],
  ];
}