function ViewsHandlerFilterInOperator::getGroupedExposedFilters
2 calls to ViewsHandlerFilterInOperator::getGroupedExposedFilters()
- ViewsHandlerFilterInOperator::testFilterInOperatorGroupedExposedSimple in tests/handlers/views_handler_filter_in_operator.test
- ViewsHandlerFilterInOperator::testFilterNotInOperatorGroupedExposedSimple in tests/handlers/views_handler_filter_in_operator.test
File
-
tests/handlers/views_handler_filter_in_operator.test, line 179
Class
- ViewsHandlerFilterInOperator
- Tests the core views_handler_filter_in_operator handler.
Code
protected function getGroupedExposedFilters() {
$filters = array(
'age' => array(
'id' => 'age',
'table' => 'views_test',
'field' => 'age',
'relationship' => 'none',
'exposed' => TRUE,
'expose' => array(
'operator' => 'age_op',
'label' => 'age',
'identifier' => 'age',
),
'is_grouped' => TRUE,
'group_info' => array(
'label' => 'age',
'identifier' => 'age',
'default_group' => 'All',
'group_items' => array(
1 => array(
'title' => 'Age is one of 26, 30',
'operator' => 'in',
'value' => array(
26,
30,
),
),
2 => array(
'title' => 'Age is not one of 26, 30',
'operator' => 'not in',
'value' => array(
26,
30,
),
),
),
),
),
);
return $filters;
}