SproutCMS

This is the code documentation for the SproutCMS project

function setParameterForColumns()

Set a parameter for fields to be a specific value, for one or more columns

Usage

null JsonForm::setParameterForColumns ( array &$items , array $columns , string $key , string $val );

Arguments

  1. array $items (by reference)
    Items array, may contain fields, groups, etc
  2. array $columns
    Columns to alter, as an array of strings (e.g. ['file','image'])
  3. string $key
    Key to set
  4. string $val
    Value to set the key to

Return value

  • null
    Array $items is altered in-place