function vbo_export_theme in VBO export 8.2
Same name and namespace in other branches
- 8 vbo_export.module \vbo_export_theme()
- 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' => [],
'configuration' => [
'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' => [],
'configuration' => [
'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',
],
];
}