You are here

function bear_form_alter in Bear 8

Implements hook_form_alter(). Prevents html5 form validation.

File

./bear.profile, line 66
Enables modules and site configuration for a bear site installation.

Code

function bear_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
  $form['#attributes']['novalidate'] = 'novalidate';
}