function views_form_views_exposed_form_alter
Same name in other branches
- 8.9.x core/modules/views/views.module \views_form_views_exposed_form_alter()
- 10 core/modules/views/views.module \views_form_views_exposed_form_alter()
- 11.x core/modules/views/views.module \views_form_views_exposed_form_alter()
Implements hook_form_alter() for the exposed form.
Since the exposed form is a GET form, we don't want it to send a wide variety of information.
File
-
core/
modules/ views/ views.module, line 630
Code
function views_form_views_exposed_form_alter(&$form, FormStateInterface $form_state) {
$form['form_build_id']['#access'] = FALSE;
$form['form_token']['#access'] = FALSE;
$form['form_id']['#access'] = FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.