From: Tim Otten Date: Thu, 2 May 2019 21:34:51 +0000 (-0700) Subject: Update planning-v0.2.md X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cca41f345e47851531fc19c3cb4fa229b84805c1;p=civicrm-core.git Update planning-v0.2.md --- diff --git a/ext/afform/docs/sandbox/planning-v0.2.md b/ext/afform/docs/sandbox/planning-v0.2.md index 38a576f227..2792a7c444 100644 --- a/ext/afform/docs/sandbox/planning-v0.2.md +++ b/ext/afform/docs/sandbox/planning-v0.2.md @@ -44,20 +44,24 @@ $afformTags = [ // format (e.g. `entity,id`). // // Must NOT be required at runtime. Only required for administration. -$afformPalette = [ - [ - 'id' => 'Parent:afl-name', /* string; should be stable but otherwise opaque to consumer */ - 'entity' => 'Parent', - 'title' => 'Name', - 'template' => '', - ], - [ - 'id' => 'Parent:afl-name', - 'entity' => 'Parent', - 'title' => 'Address', - 'template' => '', - ], -]; +function computePalette($entityType) { + return [ + [ + 'group' => 'Blocks', + 'title' => 'Name', + 'template' => '', + ], + [ + 'title' => 'Address', + 'template' => '', + ], + [ + 'group' => 'Fields', + 'title' => 'First Name', + 'template' => '', + ], + ]; +} ``` ## Form Metadata: *.aff.json