diff --git a/core/themes/olivero/olivero.theme b/core/themes/olivero/olivero.theme index b9b68c23a6e..72aa010f26a 100644 --- a/core/themes/olivero/olivero.theme +++ b/core/themes/olivero/olivero.theme @@ -494,21 +494,6 @@ function olivero_preprocess_filter_caption(&$variables) { $variables['classes'] = isset($variables['classes']) && !empty($variables['classes']) ? $variables['classes'] . ' caption' : 'caption'; } -/** - * Implements hook_form_FORM_ID_alter(). - */ -function olivero_form_comment_form_alter(&$form, FormStateInterface $form_state, $form_id) { - $comment = $form_state->getFormObject() - ->getEntity(); - /** @var \Drupal\comment\Entity\Comment $comment */ - if ($comment->hasParentComment()) { - $form['actions']['submit']['#value'] = t('Reply to comment'); - } - else { - $form['actions']['submit']['#value'] = t('Post comment'); - } -} - /** * Implements hook_form_FORM_ID_alter(). */