Revision 95cfb699
Added by Niels Hoffmann over 12 years ago
7.x/modules/dwca_export/dwca_export.module | ||
---|---|---|
93 | 93 |
'view_name'=> 'dwca_export_classification', |
94 | 94 |
'display_id' => 'views_data_export_1', |
95 | 95 |
'out_file_url' => NULL |
96 |
), |
|
97 |
'specimen.txt' => array( |
|
98 |
'view_name'=> 'view_test_specimen_export', |
|
99 |
'display_id' => 'views_data_export_1', |
|
100 |
'out_file_url' => NULL |
|
96 | 101 |
) |
97 | 102 |
); |
98 | 103 |
} |
... | ... | |
155 | 160 |
|
156 | 161 |
if ($result !== TRUE) { |
157 | 162 |
throw new Exception(t('Could not create zip_archive %tmp_archive_file_name', array('%tmp_archive_file_name' => $tmp_archive_file_name))); |
158 |
}else{ |
|
159 |
// add metadata |
|
160 |
$zip->addFile($module_static_dir_absolute.$metadata, $zip_root_dir.$metadata); |
|
161 |
// add the csv data files |
|
162 | 163 |
} |
163 |
|
|
164 |
|
|
165 |
|
|
166 |
// add metadata |
|
167 |
$zip->addFile($module_static_dir_absolute.$metadata, $zip_root_dir.$metadata); |
|
168 |
// add the csv data files |
|
164 | 169 |
foreach(_dwca_export_archive_descriptor_file_map() as $dwca_filename=>$view_data){ |
165 | 170 |
|
166 | 171 |
$view_temp_file = $view_data['out_file_url']; |
Also available in: Unified diff
added specimen to dwca