function views_form_views_exposed_form_alter

Implements hook_form_alter() for views_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 2198

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;
    // AJAX behaviors need these data, so we add it back in #after_build.
    $form['#after_build'][] = 'views_exposed_form_ajax_enable';
}