You are here

public function biblio_handler_field_contributor::post_execute in Bibliography Module 7

Same name and namespace in other branches
  1. 7.2 views/biblio_handler_field_contributor.inc \biblio_handler_field_contributor::post_execute()

Run after the view is executed, before the result is cached.

This gives all the handlers some time to modify values. This is primarily used so that handlers that pull up secondary data can put it in the $values so that the raw data can be utilized externally.

Overrides views_handler::post_execute

File

views/biblio_handler_field_contributor.inc, line 129

Class

biblio_handler_field_contributor

Code

public function post_execute(&$values) {
  $vids = array();
  $this->items = array();
  $filter = '';
  foreach ($values as $result) {

    // Don't add empty results to the array.
    if (isset($this->aliases['vid']) && !empty($result->{$this->aliases['vid']})) {
      $vids[] = $result->{$this->aliases['vid']};
    }
  }
  if (count($vids)) {
    $this->items = biblio_load_contributors_multiple($vids, $this->options['auth_category']);
  }
}