function _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

Code

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