SproutCMS

This is the code documentation for the SproutCMS project

function multieditBuild()

For a set of multi-edit fields, loads the data into a much more usable array

Input:
  [phone] = ('1234 1234', '4321 4321')
  [type] = ('Mobile', 'Home')

Output:
  [1] = ('phone' => '1234 1234', 'type' => 'Mobile')
  [2] = ('phone' => '4321 4321', 'type' => 'Home')

Usage

unknown Admin::multieditBuild ( array $dataset , array $field_names );

Arguments

  1. array $dataset
    The original data to use
  2. array $field_names
    An array of the names of the fields to use