You are here

function FeedsExcelParser::cleanupSheetsForBatch in Feeds Excel 6

Prepares sheets for batch storage and later token replacement.

1 call to FeedsExcelParser::cleanupSheetsForBatch()
FeedsExcelParser::parse in ./ExcelParser.inc
Implementation of FeedsParser::parse().

File

./ExcelParser.inc, line 89

Class

FeedsExcelParser
Parses a given file as a Excel file.

Code

function cleanupSheetsForBatch($sheets) {
  foreach ($sheets as $id => $sheet) {
    unset($sheet['cells']);
    unset($sheet['cellsInfo']);

    // Token get ID only works with objects.
    $sheets[$id] = (object) $sheet;
  }
  return $sheets;
}