Skip to content

Commit

Permalink
Hide the checkbox only instead of disable it
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Huynh committed Sep 16, 2024
1 parent ae40233 commit c6c6aff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions advanced_search_tips.module
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ function advanced_search_tips_form_alter(&$form, \Drupal\Core\Form\FormStateInte
if ($config->get("show-hide-include-sub-collections") != 1) {
$form['ajax']['recursive']['#default_value'] = TRUE;
$form['ajax']['recursive']['#access'] = FALSE;
$form['ajax']['recursive']['#attributes'] = ['style' => 'display: none;'];
}else {
if ($config->get("enable-include-sub-collections") === 1) {
$form['ajax']['recursive']['#default_value'] = TRUE;
Expand Down

0 comments on commit c6c6aff

Please sign in to comment.