function search404_goto in Search 404 6
Same name and namespace in other branches
- 7 search404.page.inc \search404_goto()
Search404 drupal_goto helper function.
1 call to search404_goto()
- search404_page in ./
search404.module - Main search function. Started with: http://drupal.org/node/12668 Updated to be more similar to search_view
File
- ./
search404.module, line 261
Code
function search404_goto($path = '') {
// Overwrite $_REQUEST['destination'] because it is set by drupal_not_found().
$_REQUEST['destination'] = $path;
// Set 301 redirect if so specified in settings else do default 302 redirect.
if (variable_get('search404_redirect_301', FALSE)) {
$http_status = 301;
}
else {
$http_status = 302;
}
drupal_goto($path, NULL, NULL, $http_status);
}