You are here

public function SearchApiAttachmentsViewsHandlerAttachmentsFilter::exposed_form in Search API attachments 7

Render our chunk of the exposed filter form when selecting.

You can override this if it doesn't do what you expect.

Overrides views_handler_filter::exposed_form

File

includes/views/search_api_attachments_views_handler_attachments_filter.inc, line 56
Contains SearchApiAttachmentsViewsHandlerAttachmentsFilter.

Class

SearchApiAttachmentsViewsHandlerAttachmentsFilter
Views filter handler class to filter attachments results.

Code

public function exposed_form(&$form, &$form_state) {
  if (empty($this->options['exposed'])) {
    return;
  }
  $form['saa_exclude_attachments'] = array(
    '#type' => 'checkbox',
    '#title' => t('Exclude search in attachments'),
    '#default_value' => $this->options['saa_exclude_attachments'],
  );
}