public function CSVFIReader::formatPath in Feed Import 7.3
Override this to preprocess your paths before they are used in map().
Parameters
string $path Path to format:
Return value
mixed Formatted path
Overrides FeedImportUniVectorReader::formatPath
File
- feed_import_base/
inc/ feed_import_readers.inc, line 601 - This file contains implementations of feed import readers.
Class
- CSVFIReader
- CSV Reader class, used to read csv files.
Code
public function formatPath($path) {
$path = parent::formatPath($path);
if ($this->columns) {
foreach ($path as &$p) {
if (isset($this->columns[$p])) {
$p = $this->columns[$p];
}
}
}
return $path;
}