You are here

function hook_filter_harmonizer_is_empty in Views Filter Harmonizer 1.0.x

Same name and namespace in other branches
  1. 8 filter_harmonizer.api.php \hook_filter_harmonizer_is_empty()

Allow modules to alter the meaning of 'is empty' for regular filter values.

By default filter $value is considered empty when: -- it is an empty array, or -- when all of the array elements -- equal NULL or the empty string '' or an empty array, or -- are arrays with elements that equal NULL or '' or an empty array.

Other modules may override this rule of thumb by implementing this hook. Function does not return a value, but your hook implementation must set the variable $is_empty.

Parameters

bool $is_empty: Set this according to whether the $filter is considered empty or not.

Drupal\views\Plugin\views\filter\FilterPluginBase $filter: The associated Views exposed filter handler, if needed.

1 function implements hook_filter_harmonizer_is_empty()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

geofield_filter_harmonizer_is_empty in includes/filter_harmonizer_for_geofield.inc
Implements hook_filter_harmonizer_is_empty().
1 invocation of hook_filter_harmonizer_is_empty()
filter_harmonizer_is_empty in ./filter_harmonizer.module
Returns TRUE when the supplied regular filter info is empty or incomplete.

File

./filter_harmonizer.api.php, line 28
Documents hooks in the standard Drupal manner. This is not working code.

Code

function hook_filter_harmonizer_is_empty(&$is_empty, FilterPluginBase $filter) {
}