X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole-en%2Ftranslations%2Fgenerate.form.alter.yml;h=afd16b83d67137d3739a1395b0c5f04e4efbb1d2;hp=dfcf577b475ee0c835a86102a065f3639f10d848;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5
diff --git a/vendor/drupal/console-en/translations/generate.form.alter.yml b/vendor/drupal/console-en/translations/generate.form.alter.yml
index dfcf577b4..afd16b83d 100644
--- a/vendor/drupal/console-en/translations/generate.form.alter.yml
+++ b/vendor/drupal/console-en/translations/generate.form.alter.yml
@@ -1,9 +1,31 @@
description: 'Generate an implementation of hook_form_alter() or hook_form_FORM_ID_alter'
help: 'The "%s" command helps you generate a new "%s"'
+welcome: 'Welcome to the Drupal Form Alter generator'
options:
- form-id: 'Form ID to alter'
+ module: 'The Module name.'
+ form-id: 'Form ID to alter'
+ inputs: 'Create inputs in a form.'
+questions:
+ module: 'Enter the module name'
+ form-id: 'Enter the Form ID to alter'
+ type: 'Enter New field type'
+ label: 'Input label'
+ description: 'Description'
+ default-value: 'Default value'
+ weight: 'Weight for input item'
messages:
- inputs: "You can add form fields to modify form.\nThis is optional, press enter to continue"
- loading-forms: Loading forms definition from Webprofiler module
- hide-form-elements: 'Optionally you can select form items for hide'
- help-already-implemented: 'The hook form alter was already implemented in module "%s"'
+ inputs: "You can add form fields to modify form.\nThis is optional, press enter to continue"
+ loading-forms: 'Loading forms definition from Webprofiler module'
+ hide-form-elements: 'Optionally you can select form items for hide'
+ help-already-implemented: 'The hook form alter was already implemented in module "%s"'
+examples:
+ - description: 'Generate a hook form alter for an empty form specifying the module name'
+ execution: |
+ drupal generate:form:alter \
+ --module="modulename"
+ - description: 'Generate a hook form alter with 2 fields specifying the module name and the inputs'
+ execution: |
+ drupal generate:form:alter \
+ --module="modulename" \
+ --inputs='"name":"inputtext", "type":"text_format", "label":"InputText", "options":"", "description":"Just an input text", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \
+ --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""'
\ No newline at end of file