Skip to content

Commit

Permalink
Merge pull request #278 from localgovdrupal/1.x
Browse files Browse the repository at this point in the history
1.6.3
  • Loading branch information
andybroomfield committed Aug 16, 2023
2 parents c858b93 + f0ef42d commit 3100f93
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions localgov_alert_banner.module
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ function localgov_alert_banner_preprocess(&$variables) {
// Token as attribute.
$variables['attributes']['data-dismiss-alert-token'] = $token;

// Remove the content moderation form if it is present.
// Do this only on the confirmation form page.
$route_match = \Drupal::routeMatch();
$route_name = $route_match->getRouteName();
if ($route_name == 'entity.localgov_alert_banner.status_form') {
unset($variables['content']['content_moderation_control']);
}
}
}

Expand Down

0 comments on commit 3100f93

Please sign in to comment.