function views_aggregator_first in Views Aggregator Plus 7
Same name and namespace in other branches
- 8 views_aggregator_functions.inc \views_aggregator_first()
Aggregates a field group as the first member of the group.
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 the first group member in.
Return value
array An empty array.
1 string reference to 'views_aggregator_first'
- views_aggregator_plugin_style_table::options_form in views/
views_aggregator_plugin_style_table.inc - Create the tabular form with the aggregation options.
File
Code
function views_aggregator_first($groups, $field_handler) {
// This is the default operation, so nothing to do, except for Webforms.
$values = array();
if (is_a($field_handler, 'webform_handler_field_submission_data')) {
foreach ($groups as $group => $rows) {
$values[$group] = views_aggregator_get_cell($field_handler, key($rows));
}
//$values['column'] = $values[key($groups)];
}
return $values;
}