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' => [