Question

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?

Était-ce utile?

La solution

Use this code:

if([YOUR_CHECKS]){
    drupal_not_found();
}

Autres conseils

You should use the drupal_not_foun() function

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top