You are here

protected function views_handler_filter_selective::baseFieldCompatible in Views Selective Filters 7

Tell if two base fields are compatible.

1 call to views_handler_filter_selective::baseFieldCompatible()
views_handler_filter_selective::options_form in ./views_handler_filter_selective.inc
Provide the basic form which calls through to subforms.

File

./views_handler_filter_selective.inc, line 94
Views Filter Selective Handler Overrides.

Class

views_handler_filter_selective
Views filter handler for selective values.

Code

protected function baseFieldCompatible($base_field1, $base_field2) {

  // Extended condition see https://www.drupal.org/node/2295707
  return preg_match('/^' . $base_field1 . '/', $base_field2);
}