public function SearchApiViewsFacetsBlockDisplay::options_validate in Search API 7
Validate the options form.
Overrides views_plugin_display::options_validate
File
- contrib/
search_api_views/ includes/ display_facet_block.inc, line 72 - Display plugin for displaying the search facets in a block.
Class
- SearchApiViewsFacetsBlockDisplay
- Plugin class for displaying search facets in a block.
Code
public function options_validate(&$form, &$form_state) {
if (substr($this->view->base_table, 0, 17) != 'search_api_index_') {
form_set_error('', t('The "Facets block" display can only be used with base tables based on Search API indexes.'));
}
}