diff --git a/uw_ct_service.module b/uw_ct_service.module index 0a5681950ecf83fced9f13462976202ca62adca5..c6a35bf13b165889aadd2a8cfae3a3e50b45c38f 100644 --- a/uw_ct_service.module +++ b/uw_ct_service.module @@ -6,7 +6,6 @@ */ use Drupal\Core\Form\FormStateInterface; -use Drupal\Core\Url; /** * Implements hook_geofield_map_latlon_element_alter(). @@ -122,8 +121,7 @@ function uw_ct_service_form_alter(array &$form, FormStateInterface $form_state, /** * Implements hook_preprocess_views_view(). */ -function uw_ct_service_preprocess_views_view(&$variables) -{ +function uw_ct_service_preprocess_views_view(&$variables) { // Get the view variable. $view = $variables['view']; @@ -159,7 +157,7 @@ function uw_ct_service_preprocess_views_view(&$variables) $content_list[] = [ 'url' => '/taxonomy/term/' . end($current_path_parts), 'text' => 'Category', - 'active' => strpos($current_path, '/taxonomy/term/') !== false ? 1 : 0, + 'active' => strpos($current_path, '/taxonomy/term/') !== FALSE ? 1 : 0, ]; // Tab for A-Z. @@ -173,14 +171,14 @@ function uw_ct_service_preprocess_views_view(&$variables) $content_list[] = [ 'url' => '/services/audience', 'text' => 'Audience', - 'active' => strpos($current_path, '/services/audience/') !== false ? 1 : 0, + 'active' => strpos($current_path, '/services/audience/') !== FALSE ? 1 : 0, ]; // Tab for Popular. $content_list[] = [ 'url' => '/services/popular', 'text' => 'Popular', - 'active' => strpos($current_path, '/services/audience/') !== false ? 1 : 0, + 'active' => strpos($current_path, '/services/audience/') !== FALSE ? 1 : 0, ]; // Set the tabs in the variables.