You are here

public function SearchApiAttachmentsViewsHandlerAttachmentsFilter::options_form in Search API attachments 7

Provide the basic form which calls through to subforms.

If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.

Overrides views_handler_filter::options_form

File

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

Class

SearchApiAttachmentsViewsHandlerAttachmentsFilter
Views filter handler class to filter attachments results.

Code

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