You are here

function views_form_views_exposed_form_alter in Views (for Drupal 7) 8.3

Same name and namespace in other branches
  1. 7.3 views.module \views_form_views_exposed_form_alter()

Implement 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

./views.module, line 1968
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_form_views_exposed_form_alter(&$form, &$form_state) {
  $form['form_build_id']['#access'] = FALSE;
  $form['form_token']['#access'] = FALSE;
  $form['form_id']['#access'] = FALSE;
}