You are here

function vbo_export_theme in VBO export 8

Same name and namespace in other branches
  1. 8.2 vbo_export.module \vbo_export_theme()
  2. 7 vbo_export.module \vbo_export_theme()

Implements hook_theme().

File

./vbo_export.module, line 13
Delivers an action to export view results to csv.

Code

function vbo_export_theme() {
  return [
    'vbo_export_content_csv' => [
      'variables' => [
        'header' => [],
        'rows' => [],
        'separator' => ';',
        'strip_tags' => TRUE,
      ],
      'file' => 'includes/vbo_export.theme.inc',
      // I know this is deprecated.
      // However if I don't set it Drupal looks for a
      // template and doesn't even think of finding the function.
      'function' => 'theme_vbo_export_content_csv',
    ],
    'vbo_export_content_xlsx' => [
      'variables' => [
        'header' => [],
        'rows' => [],
        'separator' => ';',
        'strip_tags' => TRUE,
      ],
      'file' => 'includes/vbo_export.theme.inc',
      // I know this is deprecated.
      // However if I don't set it Drupal looks for a
      // template and doesn't even think of finding the function.
      'function' => 'theme_vbo_export_content_xlsx',
    ],
  ];
}