function _views_data_export_body_shared_preprocess in Views data export 7.4
Same name and namespace in other branches
- 6.3 theme/views_data_export.theme.inc \_views_data_export_body_shared_preprocess()
- 6 theme/views_data_export.theme.inc \_views_data_export_body_shared_preprocess()
- 6.2 theme/views_data_export.theme.inc \_views_data_export_body_shared_preprocess()
- 7 theme/views_data_export.theme.inc \_views_data_export_body_shared_preprocess()
- 7.3 theme/views_data_export.theme.inc \_views_data_export_body_shared_preprocess()
Shared helper function for export preprocess functions.
4 calls to _views_data_export_body_shared_preprocess()
- template_preprocess_views_data_export_csv_body in theme/
views_data_export.theme.inc - template_preprocess_views_data_export_msoffice_body in theme/
views_data_export.theme.inc - template_preprocess_views_data_export_txt_body in theme/
views_data_export.theme.inc - Preprocess txt output template.
- template_preprocess_views_data_export_xml_body in theme/
views_data_export.theme.inc - Preprocess xml output template.
File
- theme/
views_data_export.theme.inc, line 491 - Theme related functions for processing our output style plugins.
Code
function _views_data_export_body_shared_preprocess(&$vars) {
$view = $vars['view'];
$fields =& $view->field;
$hide_empty_support = !empty($vars['hide_empty_support']);
$rows = $vars['rows'];
$vars['themed_rows'] = array();
$keys = array_keys($fields);
foreach ($rows as $num => $row) {
$vars['themed_rows'][$num] = array();
foreach ($keys as $id) {
if (empty($fields[$id]->options['exclude'])) {
$content = $view->style_plugin->rendered_fields[$num][$id];
if ($hide_empty_support && !empty($fields[$id]->options['hide_empty'])) {
if ($fields[$id]
->is_value_empty($content, $fields[$id]->options['empty_zero'])) {
continue;
}
}
$vars['themed_rows'][$num][$id] = $content;
}
}
}
}