function views_data_export_plugin_display_export::file_save_file in Views data export 7
Same name and namespace in other branches
- 6.3 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::file_save_file()
- 6 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::file_save_file()
- 6.2 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::file_save_file()
- 7.4 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::file_save_file()
- 7.3 plugins/views_data_export_plugin_display_export.inc \views_data_export_plugin_display_export::file_save_file()
Save a file into a file node after running all the associated validators.
This function is usually used to move a file from the temporary file directory to a permanent location. It may be used by import scripts or other modules that want to save an existing file into the database.
Parameters
$filepath: The local file path of the file to be saved.
Return value
An array containing the file information, or 0 in the event of an error.
1 call to views_data_export_plugin_display_export::file_save_file()
- views_data_export_plugin_display_export::outputfile_create in plugins/
views_data_export_plugin_display_export.inc - Called on export initialization Creates the output file, registers it as a temporary file with Drupal and returns the fid
File
- plugins/
views_data_export_plugin_display_export.inc, line 656 - Contains the bulk export display plugin.
Class
- views_data_export_plugin_display_export
- The plugin that batches its rendering.
Code
function file_save_file($filepath) {
return file_save_data('', $filepath);
}