You are here

function custom_pagers_plugin_style_php_array::render in Custom Pagers 6

Same name and namespace in other branches
  1. 7 views/custom_pagers_plugin_style_php_array.inc \custom_pagers_plugin_style_php_array::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;
}