function _node_import_get_file_formats in Node import 5
Return an option list of supported formats. This will always include 'auto'.
TODO: as fgetcsv is not very robust (or rather, very), we try that last.
7 calls to _node_import_get_file_formats()
- _node_import_autodetect_file_format in ./
node_import.module - Returns an autodetected file format or '' if none found.
- _node_import_import in ./
node_import.module - _node_import_mapping in ./
node_import.module - _node_import_options in ./
node_import.module - _node_import_preview in ./
node_import.module
File
- ./
node_import.module, line 768 - This modules provides a wizard at "administer >> content >> import" to import a CSV file with nodes.
Code
function _node_import_get_file_formats() {
return array(
'' => t('Autodetect'),
'_node_import_tsv_get_row' => t('Tab Separated Values (TSV) text file'),
'_node_import_csv_get_row' => t('Comma Separated Values (CSV) text file'),
);
}