douya1248 2013-05-29 08:51
浏览 66
已采纳

Drupal7:在预处理检查后显示404页面[关闭]

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?

  • 写回答

2条回答 默认 最新

  • doulongsha5478 2013-05-29 11:00
    关注

    Use this code:

    if([YOUR_CHECKS]){
        drupal_not_found();
    }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?