You are here

public function biblio_handler_field_keyword::post_execute in Bibliography Module 7

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_keyword.inc, line 56

Class

biblio_handler_field_keyword

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_keywords_multiple($vids);
  }
}