You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|\$channel_id |`int`| Channel ID where the entry is being created or edited |
104
-
|\$entry_id |`int`| Entry ID if this is an edit, empty otherwise|
105
-
| Returns |`Array`| Settings (see below)|
101
+
| Parameter | Type | Description |
102
+
| --------- | ---- | ----------- |
103
+
|\$channel_id |`int`| Channel ID where the entry is being created or edited |
104
+
|\$entry_id |`int`| Entry ID if this is an edit, empty otherwise |
105
+
| Returns |`Array`| Settings (see below) |
106
106
107
107
This function creates the fields that will be displayed on the publish page. It must return `$settings`, an associative array specifying the display settings and values associated with each of your fields.
108
108
@@ -128,11 +128,11 @@ The settings array elements:
|\$entry | <small>`ExpressionEngine\Module\Channel\Model\ChannelEntry`</small> | The channel entry entity|
134
-
|\$values |`array`| an associative array with field names as keys and form submission data as the value (i.e. `array('fortune' => 'All your hard work will soon pay off.'))`. The keys are derived from the data returned by `display()`. |
135
-
| Returns | <small>`ExpressionEngine\Service\Validation\Result`</small> | A result object|
131
+
| Parameter | Type | Description |
132
+
| --------- | ---- | ----------- |
133
+
|\$entry | <small>`ExpressionEngine\Module\Channel\Model\ChannelEntry`</small> | The channel entry entity |
134
+
|\$values |`array`| an associative array with field names as keys and form submission data as the value (i.e. `array('fortune' => 'All your hard work will soon pay off.'))`. The keys are derived from the data returned by `display()`. |
135
+
| Returns | <small>`ExpressionEngine\Service\Validation\Result`</small> | A result object |
136
136
137
137
Allows you to validate the data after the publish form has been submitted but before any additions to the database:
138
138
@@ -148,11 +148,11 @@ Allows you to validate the data after the publish form has been submitted but be
|\$entry | <small>`ExpressionEngine\Module\Channel\Model\ChannelEntry`</small> | The channel entry entity|
154
-
|\$values |`array`| an associative array with field names as keys and form submission data as the value (i.e. `array('fortune' => 'All your hard work will soon pay off.'))`. The keys are derived from the data returned by `display()`. |
155
-
| Returns |`array`| $values modified array of values|
151
+
| Parameter | Type | Description |
152
+
| --------- | ---- | ----------- |
153
+
|\$entry | <small>`ExpressionEngine\Module\Channel\Model\ChannelEntry`</small> | The channel entry entity |
154
+
|\$values |`array`| an associative array with field names as keys and form submission data as the value (i.e. `array('fortune' => 'All your hard work will soon pay off.'))`. The keys are derived from the data returned by `display()`. |
155
+
| Returns |`array`| $values modified array of values |
156
156
157
157
Code that needs to be executed when an entry is being [cloned](/channels/entry_cloning.md). This function is called before `validate`, so if you need to modify the data that will be passed to validation service (as well as `$_POST` array), this is the place to do it.
158
158
@@ -182,11 +182,11 @@ Code that needs to be executed when an entry is being [cloned](/channels/entry_c
|\$entry | <small>`ExpressionEngine\Module\Channel\Model\ChannelEntry`</small> | The channel entry entity|
188
-
|\$values |`array`| an associative array with field names as keys and form submission data as the value (i.e. `array('fortune' => 'Do not make extra work for yourself.'))`. The keys are derived from the data returned by `display()`. |
189
-
| Returns |`Void`||
185
+
| Parameter | Type | Description |
186
+
| --------- | ---- | ----------- |
187
+
|\$entry | <small>`ExpressionEngine\Module\Channel\Model\ChannelEntry`</small> | The channel entry entity |
188
+
|\$values |`array`| an associative array with field names as keys and form submission data as the value (i.e. `array('fortune' => 'Do not make extra work for yourself.'))`. The keys are derived from the data returned by `display()`. |
189
+
| Returns |`Void`||
190
190
191
191
Called during a `ChannelEntry` entity's `afterSave` event, this allows you to insert data/update data:
192
192
@@ -207,23 +207,23 @@ Called during a `ChannelEntry` entity's `afterSave` event, this allows you to in
0 commit comments