You are here

function finder_views_finder_goto in Finder 7

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

Implements hook_finder_goto().

See also

hook_finder_goto()

File

modules/finder_views/finder_views.module, line 549
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);
  }
}