function views_data_export_new in Views data export 7.4
Same name and namespace in other branches
- 6.3 views_data_export.module \views_data_export_new()
- 6 views_data_export.module \views_data_export_new()
- 6.2 views_data_export.module \views_data_export_new()
- 7 views_data_export.module \views_data_export_new()
- 7.3 views_data_export.module \views_data_export_new()
Save a new export into the database.
1 call to views_data_export_new()
- views_data_export_plugin_display_export::execute_initial in plugins/
views_data_export_plugin_display_export.inc - Initializes the whole export process and starts off the batch process.
File
- ./
views_data_export.module, line 184 - Provides the ability to export to specific
Code
function views_data_export_new($view_name, $view_display_id, $file) {
// Insert new row into exports table
$record = (object) array(
'view_name' => $view_name,
'view_display_id' => $view_display_id,
'time_stamp' => REQUEST_TIME,
'fid' => $file,
'batch_state' => VIEWS_DATA_EXPORT_HEADER,
'sandbox' => array(),
);
drupal_write_record('views_data_export', $record);
return $record;
}