Skip to content

Commit

Permalink
BNALD-68 Menu updates
Browse files Browse the repository at this point in the history
  • Loading branch information
camilocodes committed Sep 27, 2024
1 parent 11b1bc2 commit 0788f14
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions custom/modules/bnald_core/bnald_core.module
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,6 @@ function bnald_core_legislation_presave(LegislationInterface $legislation) {
$legislation->setChapterSort(str_replace(' ', '', $chapter_sort));
}

/**
* Implements hook_link_alter().
*/
function bnald_core_link_alter(&$variables) {
$url = $variables['url'];
if (!$url->isRouted()) {
return;
}

$route_name = $url->getRouteName();
switch ($route_name) {
case 'user.login':
$variables['text'] = t('@text', [
'@text' => 'Admin Login'
]);
break;

default:
return;
}
}

/**
* Implements hook_theme().
*/
Expand Down

0 comments on commit 0788f14

Please sign in to comment.