欢迎各位兄弟 发布技术文章
这里的技术是共享的
function phptemplate_preprocess_block(&$vars) {
if (isset($vars['block'])) {
print_r($vars);
}
}
function phptemplate_preprocess_block(&$vars) {
if (isset($vars['block'])) {
if($vars['block']->module == 'book') {
$vars['block']->content = "My new content";
}
}
}
来自 http://stackoverflow.com/questions/5320092/how-to-override-block-content-in-drupal