2
我試圖通過persistent_login模塊從而覆蓋不正確的錯誤消息輸出:Drupal的字符串替代和HTML
$conf['locale_custom_strings_en'] = array(
'<p><b>SECURITY ALERT!</b></p><p>You previously logged in to this site and checked the <em>Remember me</em> box. At that time, this site stored a "login cookie" on your web browser that it uses to identify you each time you return....'
);
我知道覆蓋的工作,我可以針對其他字符串,但這個拒絕被覆蓋。不知道爲什麼 - 與HTML有關? persistent_login模塊通過t()
傳遞這個字符串,所以它應該可以被覆蓋。
任何想法?
謝謝 - 它不是一個標準的錯誤消息,它調用drupal_set_message。最後我只覆蓋了hook_status_messages。不過謝謝。 – buddhamagnet 2012-03-10 20:02:26