function _views_array_filter_zero

Filter by no empty values, though allow to use "0".

Parameters

$var:

Return value

bool

1 string reference to '_views_array_filter_zero'
FilterPluginBase::build_group_validate in drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php
Validate the build group options form.

File

drupal/core/modules/views/views.module, line 2210
Primarily Drupal hooks and global API functions to manipulate views.

Code

function _views_array_filter_zero($var) {
  return trim($var) != "";
}