Skip to content

Commit 1633df7

Browse files
author
Samu Juvonen
committed
Clean-ups
1 parent dc74dea commit 1633df7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

kifisearch.module

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33
use Drupal\Core\Form\FormStateInterface;
44

55
function kifisearch_form_search_form_alter(array &$form, FormStateInterface $form_state, $form_id) {
6-
// AIn order to provide theme suggestions, we need to add the search page ID to theme.
7-
// var_dump($form);
6+
// In order to provide theme suggestions, we need to add the search page ID to theme.
87
if ($form_id == 'search_form') {
98
$form['#theme'] = ['search_form__' . $form_state->get('search_page_id')];
109

1110
// Also set the search page ID somewhere so that we can identify forms in other hooks.
1211
$form['#search_id'] = $form_state->get('search_page_id');
1312
}
14-
// $form['#theme'] = ['lolwut'];
15-
1613
}
1714

1815
function kifisearch_theme_suggestions_form_alter(array &$suggestions, array $variables) {
@@ -29,7 +26,3 @@ function kifisearch_theme_suggestions_form_alter(array &$suggestions, array $var
2926
}
3027
}
3128
}
32-
33-
function kifisearch_form_search_form__calendar_alter() {
34-
var_dump('alter calendar form');
35-
}

0 commit comments

Comments
 (0)