materio-d9/patches/mailjet_settingsform_usstat...

42 lines
1.8 KiB
Diff

diff --git a/src/Form/MailjetSettingsForm.php b/src/Form/MailjetSettingsForm.php
index 553de57..0a7b778 100644
--- a/src/Form/MailjetSettingsForm.php
+++ b/src/Form/MailjetSettingsForm.php
@@ -231,21 +231,21 @@ public function buildForm(array $form, FormStateInterface $form_state)
// States only show up for US citizens
- $path = drupal_get_path('module', 'mailjet');
- //include $path . '/lib/mailjet-api-php/src/UsStates.php';
- $form['infos']['address_state'] = [
- '#type' => 'select',
- '#title' => t('State'),
- '#options' => UsStates::getStates(),
- '#default_value' => !empty($user_infos) ? $user_infos['AddressState'] : '',
- '#required' => true,
- '#states' => [
- // Only show this field when the value of type is sell.
- 'visible' => [
- ':input[name="address_country"]' => ['value' => 'US'],
- ],
- ],
- ];
+ // $path = drupal_get_path('module', 'mailjet');
+ // //include $path . '/lib/mailjet-api-php/src/UsStates.php';
+ // $form['infos']['address_state'] = [
+ // '#type' => 'select',
+ // '#title' => t('State'),
+ // '#options' => UsStates::getStates(),
+ // '#default_value' => !empty($user_infos) ? $user_infos['AddressState'] : '',
+ // '#required' => true,
+ // '#states' => [
+ // // Only show this field when the value of type is sell.
+ // 'visible' => [
+ // ':input[name="address_country"]' => ['value' => 'US'],
+ // ],
+ // ],
+ // ];
$form['actions']['#type'] = 'actions';
$form['actions']['submit'] = [