-1

I have some checks in my preprocessing files for nodes. If one of them is true I would like to show my defined 404 page. How is this possible with a php call?

madth3
  • 7,275
  • 12
  • 50
  • 74
MaxiNet
  • 1,008
  • 2
  • 14
  • 22

2 Answers2

1

Use this code:

if([YOUR_CHECKS]){
    drupal_not_found();
}
Raniel
  • 91
  • 4
0

You should use the drupal_not_foun() function

Bhavin Joshi
  • 514
  • 3
  • 12