这在这里行不通:
$block['content'] += array(
'#theme' => 'guestbook_last_entries',
'#entries' => $entry,
);
如果您需要一个数组作为结果,也许您需要这个:
// note that I replaced += with a simple = and added two brackets that will create a new element in that array $block['content']
$block['content'][] = array(
'#theme' => 'guestbook_last_entries',
'#entries' => $entry,
);