Skip to content
Snippets Groups Projects
Commit 3fde3022 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5129: coding standards

parent 4f5f5f36
No related branches found
No related tags found
4 merge requests!60ISTWCMS-6095 Update maxlength settings for title, text fields and link fields...,!25ISTWCMS-5779 Click update button under...,!8Feature/istwcms 5127 ebremner services blocks gui,!7Feature/istwcms 5129 ebremner theme services views
......@@ -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.
......
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