function webform_cards_form_webform_admin_config_forms_form_alter in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_cards/webform_cards.module \webform_cards_form_webform_admin_config_forms_form_alter()
Implements hook_form_FORM_ID_alter() for webform configuration:forms.
See also
\Drupal\webform\Form\AdminConfig\WebformAdminConfigFormsForm
/admin/structure/webform/config
File
- modules/
webform_cards/ webform_cards.module, line 315 - Provides a 'Card' container element for clientside multistep form pagination.
Code
function webform_cards_form_webform_admin_config_forms_form_alter(array &$form, FormStateInterface $form_state) {
_webform_cards_form_alter_elements($form, [
'wizard_settings' => [
'#title' => t('Form wizard/cards settings'),
'default_wizard_prev_button_label' => [
'#title' => t('Default wizard/cards previous page button label'),
],
'default_wizard_next_button_label' => [
'#title' => t('Default wizard/cards next page button label'),
],
'default_wizard_start_label' => [
'#title' => t('Default wizard/cards start label'),
],
'default_wizard_confirmation_label' => [
'#title' => t('Default wizard/cards end label'),
],
'default_wizard_toggle_show_label' => [
'#title' => t('Default wizard/cards show all elements label'),
],
'default_wizard_toggle_hide_label' => [
'#title' => t('Default wizard/cards hide all elements label'),
],
],
]);
}