Skip to content
Snippets Groups Projects
Unverified Commit e4949ef2 authored by weaver299's avatar weaver299 Committed by GitHub
Browse files

Merge pull request #234 from ASCWebServices/canini

fixing research gallery filter headings
parents ec9ea30c 6d0a89d5
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,18 @@ function asc_bootstrap_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $
|| ($form['#id'] == 'views-exposed-form-research-project-gallery-block-1')
|| ($form['#id'] == 'views-exposed-form-research-project-directory-mobile-block-1')
) {
/*
* add new HTML content to filters (headers and spacer)
* and setting weights for where they should appear in the form hierarchy
*/
$form['filter_heading'] = array(
'#markup' => '<h2 class="filter-heading">Filter</h2>',
'#weight' => -10,
);
$form['filter_search_heading'] = array(
'#markup' => '<h2 class="filter-heading search-heading">Search</h2>',
'#weight' => 4,
);
$form['spacer'] = array(
'#markup' => '<div class="filter-spacer"></div>',
'#weight' => 1.5,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment