2011-07-08 54 views
2

射擊我有一個名爲 themename_status_messagestheme_status_messages()沒有在我的Drupal 6主題

它沒有被調用/主題我的主題調用的template.php文件中。

當我使用一個測試DSM輸出devel的themer信息,我告訴候選人的功能是: theme_messages_alter_status_messages()
themename_messages_alter_status_messages()

我不知道爲什麼status_messages()通話不被頁面加載過程中調用。有任何想法嗎?

回答

1

貌似這個問題是有一個模塊這改變了處理的方式,我不知道模塊在那裏,並做到了這一點。該模塊是Messages Alter。在檢查神祕的模塊頁面的時候,教會我少一些。

0

在你的page.tpl.php上,是否有一個$ messages var正在頁面上打印?

一個更好的辦法,看看是否$消息被傳遞到你的主題是使用THEME_preprocess_page(& $瓦爾)函數中的template.php:

function THEME_preprocess_page(&$vars) { 
    dpm($vars); 
    // or use $dpr($vars) for a textual array printout 
    // Replace 'THEME' in the function name with the name of your theme. 
} 
+0

是的,$信息在那裏。 – Justin