SproutCMS

This is the code documentation for the SproutCMS project

function autofillOptionDefaults()

Determine the auto-generated default values for an autofill-list

Defaults:
    joiner_local_col        Singular of local table name + '_id'
    joiner_foreign_col      Singular of the foreign_table option + '_id'
    foreign_label_col       'name'
    reorder                 false

Usage

array JsonForm::autofillOptionDefaults ( array $auto , string $local_table_name );

Arguments

  1. array $auto
    Auto link opts, from a JSON form defintion
  2. string $local_table_name
    The 'local' table name (i.e. the table which is being edited)

Return value

  • array