Hi, please advise where's the setting to remove the language selection on the email block ? no need for this . Thanks

CommentFileSizeAuthor
#5 simplenews.language-select.3385578-5.patch599 bytesadamps

Comments

freelylw created an issue. See original summary.

ufol666’s picture

I also have this problem, I could not find anything in the options.
preporcess solved the problem:


function YOURTHEMENAME_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
  if ($form_id == 'YOURSIMPLENEWSFORMID') {
     $form['langcode']['#access'] = FALSE;;
  }
}

freelylw’s picture

I just hide it through css by now.

adamps’s picture

Thanks for the report. There is another issue #3388286: Allow configurable form display for subscriber langcode however it is postponed on a Drupal Core fix.

Is this a new problem for 4.x?

adamps’s picture

Title: setting for remove the language selection ? » Remove the language selection on subscriptions block form
Category: Support request » Bug report
Status: Active » Needs review
StatusFileSize
new599 bytes

  • AdamPS committed 89ad8d83 on 4.x
    Issue #3385578 by AdamPS: Remove the language selection on subscriptions...
adamps’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

cspitzlay’s picture

How can an anonymous user choose their subscription language after this change?
Now I need to use the suggestion from #2 (https://www.drupal.org/project/simplenews/issues/3385578#comment-15222697) but the other way around, forcing it to TRUE.