Skip to content

Commit

Permalink
Added code clean up and remove tfa enable with hook. (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
MdNadimHossain authored Oct 10, 2024
1 parent 7c54101 commit 39b0070
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
5 changes: 0 additions & 5 deletions modules/tide_landing_page/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
15 changes: 1 addition & 14 deletions tide_core.install
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ function tide_core_install() {

// Changes the diff modules general_settings.revision_pager_limit to 16.
$tideCoreOperation->changeDiffSettings();

// Enable Tide TFA.
$tideCoreOperation->enabledTideTfa();
}

/**
Expand Down Expand Up @@ -227,20 +224,10 @@ function _tide_core_replace_attribute_in_tag($array, $tagName, $attribute, $newA
return $array;
}

/**
* Enable Tide TFA.
*/
function tide_core_update_10007() {
$tideCoreOperation = new TideCoreOperation();

// Enable Tide TFA.
$tideCoreOperation->enabledTideTfa();
}

/**
* Installs tide_times sensor.
*/
function tide_core_update_10008() {
function tide_core_update_10007() {
\Drupal::moduleHandler()->loadInclude('tide_core', 'inc', 'includes/helpers');
$config_location = [\Drupal::service('extension.list.module')->getPath('tide_core') . '/config/install'];
$config_read = _tide_read_config('monitoring.sensor_config.tide_times', $config_location, TRUE);
Expand Down

0 comments on commit 39b0070

Please sign in to comment.