function theme_views_data_export_complete_page in Views data export 6
Same name and namespace in other branches
- 6.3 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.4 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 45 - Theme related functions for processing our output style plugins.
Code
function theme_views_data_export_complete_page($file, $errors = array(), $return_url = '') {
drupal_set_title(t('Data export successful'));
drupal_set_html_head('<meta http-equiv="refresh" content="3;url=' . check_plain($file) . '" />');
$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;
}