You are here

function _views_array_filter_zero in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 8.3 views.module \_views_array_filter_zero()

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

Parameters

string $var: The string to check.

Return value

bool Indicates if the argument is an empty string.

Related topics

1 string reference to '_views_array_filter_zero'
views_handler_filter::build_group_validate in handlers/views_handler_filter.inc
Validate the build group options form.

File

handlers/views_handler_filter.inc, line 1568
Definitions of views_handler_filter and views_handler_filter_broken.

Code

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