Is there a drupal function to jump out of the page rendering process and return the page not found?

I would like to have a selection in the variable_load function (as used to load variables from menu arguments) to bypass the rest of the page rendering process and give the user a "page not found".

I could use drupal_goto (), but I would rather not redirect the user and change the url in my browser.

Is it possible?

0


source to share


1 answer


you can use drupal_not_found()

to display the "page not found" message without changing the url.



+4


source







All Articles