function theme_views_data_export_complete_page in Views data export 7.4
Same name and namespace in other branches
- 6.3 theme/views_data_export.theme.inc \theme_views_data_export_complete_page()
- 6 theme/views_data_export.theme.inc \theme_views_data_export_complete_page()
- 6.2 theme/views_data_export.theme.inc \theme_views_data_export_complete_page()
- 7 theme/views_data_export.theme.inc \theme_views_data_export_complete_page()
- 7.3 theme/views_data_export.theme.inc \theme_views_data_export_complete_page()
Theme callback for the export complete page.
Parameters
$file: Link to output file
1 theme call to theme_views_data_export_complete_page()
- views_data_export_plugin_display_export::render_complete in plugins/
views_data_export_plugin_display_export.inc - Render the 'Export Finished' page with the link to the file on it.
File
- theme/
views_data_export.theme.inc, line 58 - Theme related functions for processing our output style plugins.
Code
function theme_views_data_export_complete_page($variables) {
extract($variables, EXTR_SKIP);
drupal_set_title(t('Data export successful'));
drupal_add_html_head(array(
'#tag' => 'meta',
'#attributes' => array(
'http-equiv' => "Refresh",
'content' => '3;url=' . $file,
),
), 'views_data_export_download');
$output = '';
$output .= '<p>';
$output .= t('Your export has been created. View/download the file <a href="@link">here</a> (will automatically download in 3 seconds.)', array(
'@link' => $file,
));
$output .= '</p>';
if (!empty($return_url)) {
$output .= '<p>';
$output .= l(t('Return to previous page'), $return_url);
$output .= '</p>';
}
return $output;
}