You are here

function finder::go in Finder 7.2

Finder go.

1 call to finder::go()
finder::results in includes/finder.inc
Finder results.

File

includes/finder.inc, line 1051
finder.inc

Class

finder
An object to contain all of the data to generate a finder, plus the member functions to build the finder, and render the output.

Code

function go() {
  module_invoke_all('finder_go', $this);
  $result = reset($this->find['results']);
  $id =& $result->{$this->view->base_field};
  $path = finder_path($this->view->base_table, $id);
  if ($path) {
    if ($this->view->base_table == 'files') {
      file_download($path);
    }
    drupal_goto($path);
  }
}