You are here

function finder_views_finder_goto in Finder 6

Same name and namespace in other branches
  1. 7 modules/finder_views/finder_views.module \finder_views_finder_goto()

Implementation of hook_finder_goto().

See also

hook_finder_goto()

File

modules/finder_views/finder_views.module, line 545
The finder views module.

Code

function finder_views_finder_goto($finder, $result) {
  $id =& $result->{$result->base_field};
  $path = finder_views_path($result->base_table, $id);
  if ($path) {
    if ($result->base_table == 'files') {
      file_download($path);
    }
    drupal_goto($path);
  }
}