function custom_pagers_plugin_style_php_array::render in Custom Pagers 7
Same name and namespace in other branches
- 6 views/custom_pagers_plugin_style_php_array.inc \custom_pagers_plugin_style_php_array::render()
Render the display in this style.
Overrides views_plugin_style::render
File
- views/
custom_pagers_plugin_style_php_array.inc, line 8 - Handler for 'custom_pagers_php_array' style.
Class
- custom_pagers_plugin_style_php_array
- @file Handler for 'custom_pagers_php_array' style.
Code
function render() {
$results = array();
// Group the rows according to the grouping field, if specified.
$sets = $this
->render_grouping($this->view->result, $this->options['grouping']);
$base_field = $this->view->base_field;
foreach ($sets as $title => $records) {
foreach ($records as $label => $row) {
$results[] = $row->{$base_field};
}
}
return $results;
}