[英]Drupal newsletter module and restricted access category
我正在將Drupal 7與新聞稿模塊( https://drupal.org/project/newsletter )一起使用。 我用清單列表創建了模板。 不幸的是,我看不到該類別的真實名稱,我只看到了“打開”。
無論如何,如果我嘗試檢查該元素,則ID類別是正確的類別,並且除了該類別的錯誤電子郵件之外,其他所有內容都在起作用。
謝謝
我也遇到了這個問題。 顯然,hook_entity_info的新聞通訊實現缺少“訪問回調”。
我將此代碼放入模塊中,並定義了自己的訪問回調,但是如果願意,可以使用現有的回調。
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;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.