我很难理解 hook_theme() 是做什么的。 我的理解是它与允许覆盖模板有关。 我正在查看: $theme_hooks = array( 'poll_vote' => array( 'template' => 'poll-vote', ...
我成功地使用了预处理页面钩子,例如: function mytheme_preprocess_page__node_front(&$variables) { ... } 并且 function mytheme_preprocess_page__node_12(&...