From feba60bbf206215eff90ebbe16bfe5da53fcb7c6 Mon Sep 17 00:00:00 2001 From: Prashant Kanse Date: Wed, 17 Jan 2024 19:21:56 +0530 Subject: [PATCH] DGIR-148 : Fix linting error --- embargo.install | 8 +++++++- embargo.module | 3 --- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/embargo.install b/embargo.install index a4e81b9..b97da50 100644 --- a/embargo.install +++ b/embargo.install @@ -1,5 +1,10 @@ error('Error adding field: @error', ['@error' => $e->getMessage()]); return t('Update failed: @error', ['@error' => $e->getMessage()]); diff --git a/embargo.module b/embargo.module index e32d777..e0c4af1 100644 --- a/embargo.module +++ b/embargo.module @@ -104,9 +104,6 @@ function embargo_theme($existing, $type, $theme, $path) { */ function embargo_form_alter(&$form, FormStateInterface $form_state, $form_id) { if ($form_id == 'embargo_add_form' || $form_id == 'embargo_edit_form') { - // Get the current value of the embargo_type field. - $embargo_type_value = $form_state->getValue('embargo_type'); - // Set up visibility conditions for the embargoed_file field. $form['embargoed_file']['#states'] = [ 'visible' => [