1
我需要將用戶配置文件字段顯示在我的page.tpl中。我知道配置文件數據不包含在$ user數組中,但我認爲使用主題函數phptemplate_preprocess_page可以添加數據,但我不確定如何。Drupal:在page.tpl中包含用戶配置文件數據(phptemplate_preprocess_page?)
我需要將用戶配置文件字段顯示在我的page.tpl中。我知道配置文件數據不包含在$ user數組中,但我認爲使用主題函數phptemplate_preprocess_page可以添加數據,但我不確定如何。Drupal:在page.tpl中包含用戶配置文件數據(phptemplate_preprocess_page?)
profile_load_profile($user);
將配置文件數據添加到用戶對象。