2014-03-07 39 views

回答

0

我遇到過這個問題也。顯然,通訊執行hook_entity_info的是缺乏「訪問回調」。

我把這個代碼我的模塊中,並確定我自己的訪問回調,但你可以使用exis如果你願意的話可以回撥。

function mymodule_entity_info_alter(&$entity_info){ 
    $entity_info["newsletter_template"]["access callback"] = "mymodule_template_access"; 
} 

function mymodule_template_access($op, $entity, $account, $entity_type){ 
    return true; 
}