我目前在Drupal6的基本主题中使用theme_blocks(),并且我很难将我的主题转换到Drupal7,因为在Drupal7中没有使用theme_blocks()。下面的代码是该函数的一个简单实现,以及我目前如何在Drupal6中使用它:
/* Implementation of theme_blocks() */
function theme_blocks($region) {
var output = '';
if ($list = block_list($region)) {
//cycle through all blocks in a regio