VBO: Form validate of Views bulk operation¶
Plugin ID: vbo:form_validate
Provided tokens
| Token | Description |
|---|---|
[user] |
The current user. Alias: current_user |
[form] |
The current form. Alias: current_form |
[form:id] |
The form ID. |
[form:base_id] |
The form base ID. |
[form:operation] |
The form operation. |
[form:mode] |
The form mode. |
[form:triggered] |
The form field name that triggered the form event. |
[form:values] |
|
[form:values:FIELD_NAME] |
The field value for each of the named fields. |
[form:num_errors] |
The number of form errors. |
[event] |
The event. |
[event:view] |
The view config entity. |
[event:view:id] |
The view ID. |
[event:view:display_id] |
The display ID. |
[event:action] |
The action plugin. |
[event:action:plugin] |
The ID of the action plugin. |
[event:action:config] |
An array with key value pairs of the configuration of the plugin. |
[event] |
The event. |
[event:machine_name] |
The machine name of the ECA event. |
[session_user] |
The user account that dispatched the event, regardless if ECA is processing models under a different account. This is only available if ECA is configured to always run under a specific account. |
Fires when the VBO action's configuration form is being validated. Only fires if the configuration form was displayed (not skipped). Use this to validate user input collected during the form build step.
Fields¶
Operation name— config key:operation_name-
Type:
textfield· Required: yes · Default: empty stringThe operation name that identifies the bulk operation this event reacts to.
Optionally restrict by view ID— config key:view_id-
Type:
textfield· Required: no · Default: empty stringValue format: The machine name of a view on the target site.
Optionally restrict to a specific View by machine name. Leave empty to react to all Views. Comma-separated for multiple values.
Optionally restrict by view display ID— config key:display_id-
Type:
textfield· Required: no · Default: empty stringValue format: The machine name of a display within the selected view, for example default or page_1.
Optionally restrict to a specific View display (e.g.,
page_1,block_1). Leave empty to react to all displays. Comma-separated for multiple values.