Skip to content

Commit

Permalink
Issue #45: Exclude new configuration from installation step and impro…
Browse files Browse the repository at this point in the history
…ve last.
  • Loading branch information
lexhouk committed Feb 2, 2019
1 parent 79d2e3b commit 50b1e92
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Captcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ public function getFormId() {
public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);

$section = $form['general'];
$form['#title'] = $this->t('reCAPTCHA keys');

unset($form['general'], $form['widget']);
$form['general']['#type'] = 'container';
$form['general']['recaptcha_verify_hostname']['#access'] = FALSE;
$form['general']['recaptcha_use_globally']['#access'] = FALSE;

$form['#title'] = $this->t('reCAPTCHA keys');
$form['widget']['#access'] = FALSE;

return $form + $section;
return $form;
}

}

0 comments on commit 50b1e92

Please sign in to comment.