Right now I have a redirect in my code:
drupal_goto($path);
Per the documentation drupal_goto
defaults to a 302 redirect. I want a 301.
However, when I put in:
drupal_goto($path, $http_response_code = 302);
It gives me an error:
Argument 2 passed to drupal_goto() must be of the type array, integer given,
But if I try something like:
drupal_goto($path, array $options = array(), $http_response_code = 302);
...I get this error:
Unexpected '$options'
How can I properly change drupal_goto
into a 301 redirect?