Skip to content
Snippets Groups Projects
Verified Commit ebe5550b authored by Alexandre Dias's avatar Alexandre Dias
Browse files

ISAICP-9399: Remove unused token and fix test to prove it's fixed.

parent 299b7bc8
No related branches found
No related tags found
1 merge request!209Release 2.2.0
...@@ -126,6 +126,7 @@ Feature: ...@@ -126,6 +126,7 @@ Feature:
Then I should see the message "Custom page Upcoming events has been created." Then I should see the message "Custom page Upcoming events has been created."
And I should see the text "Upcoming events" in the "Page title" region And I should see the text "Upcoming events" in the "Page title" region
And I should see the following tiles in the correct order: And I should see the following tiles in the correct order:
| Dummy Event 5 |
| Upcoming Event 1 | | Upcoming Event 1 |
| Dummy upcoming week event | | Dummy upcoming week event |
| Upcoming week Event | | Upcoming week Event |
......
...@@ -21,13 +21,6 @@ function joinup_core_token_info(): array { ...@@ -21,13 +21,6 @@ function joinup_core_token_info(): array {
'description' => t('Generates a universally unique identifier.'), 'description' => t('Generates a universally unique identifier.'),
], ],
], ],
'view' => [
'current_year' => [
'name' => t('Current Year'),
'description' => t('The current year.'),
],
],
], ],
]; ];
} }
...@@ -48,14 +41,6 @@ function joinup_core_tokens($type, $tokens, array $data, array $options, Bubblea ...@@ -48,14 +41,6 @@ function joinup_core_tokens($type, $tokens, array $data, array $options, Bubblea
} }
} }
break; break;
case 'view':
foreach ($tokens as $name => $original) {
if ($name === 'current_year') {
$replacements[$original] = date('Y');
}
}
break;
} }
return $replacements; return $replacements;
......
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