You are here

function views_aggregator_enumerate in Views Aggregator Plus 8

Same name and namespace in other branches
  1. 7 views_aggregator_functions.inc \views_aggregator_enumerate()

Aggregates a field group as the enumeration of its members.

The enumeration is sorted "naturally" and duplicates are removed.

Parameters

array $groups: An array of groups of rows, each group indexed by group value.

object $field_handler: The handler for the view column to find members of the group.

string $separator_group: The separator to use in group enumerations, defaults to '<br/>'.

string $separator_column: The separator to use for the column enumeration, defaults to '<br/>'.

Return value

array An array of values, one for each group.

2 string references to 'views_aggregator_enumerate'
ViewsAggregatorResultsTest::testColumnResultFunctions in tests/src/Functional/Plugin/ViewsAggregatorResultsTest.php
Test the column functions.
ViewsAggregatorResultsTest::testGroupResultFunctions in tests/src/Functional/Plugin/ViewsAggregatorResultsTest.php
Test the group functions.

File

./views_aggregator_functions.inc, line 317
views_aggregator_functions.inc

Code

function views_aggregator_enumerate(array $groups, $field_handler, $separator_group, $separator_column) {
  return _views_aggregator_enumerate($groups, $field_handler, $separator_group, $separator_column, TRUE, FALSE);
}