문제

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?

도움이 되었습니까?

해결책

Use this code:

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

다른 팁

You should use the drupal_not_foun() function

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top