Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
[SD-231] Moved states js pattern support to global place for all node…
Browse files Browse the repository at this point in the history
…s. (#234)

* [SD-231] * Removed webform state js from landing page and moved it to tide_core for global use.
  • Loading branch information
MdNadimHossain authored Sep 20, 2024
1 parent 18e0184 commit 8564497
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tide_landing_page.module
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ function tide_landing_page_form_node_form_alter(&$form, FormStateInterface $form
}
}

// Adding custom states from webform js.
if (\Drupal::moduleHandler()->moduleExists('webform')) {
$form['#attached']['library'][] = 'webform/webform.states';
}

// Hide the field Show Acknowledgement to Country if tide_site is missing.
if (!\Drupal::moduleHandler()->moduleExists('tide_site')) {
$form['field_show_ack_of_country']['#attributes']['class'][] = 'hidden';
Expand Down

0 comments on commit 8564497

Please sign in to comment.