Technical Overview: Form Storage -- CSV

From IHRIS Wiki
Revision as of 10:19, 10 November 2009 by Litlfred (talk | contribs) (Created page with 'This is a form storage mechanism designed to read data from a CSV file. It is primarily designed to import data. ==Form Storage Options== The options specifying a CSV storage …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is a form storage mechanism designed to read data from a CSV file. It is primarily designed to import data.

Form Storage Options

The options specifying a CSV storage for $form are stored at:

/modules/forms/forms/$form/storage_options/CSV

It has the following structure:

  • file: The CSV file that the data should be read from. This can either be an absolutely given file path, or a relative file path. If it is a relative file path, then it uses the file search
  • has_header: Whether or not the first row is a header row. Defaults to true.