"Drupal7输出区块到模板"

Published on Aug. 22, 2023, 12:06 p.m.

<? php

$block =block_load(‘book’,’navigation’);

$output = drupal_render(_block_get_renderable_array(_block_render_blocks(array($block))));

print $output;

$block =block_load(‘node’,’recent’);

$output = drupal_render(_block_get_renderable_array(_block_render_blocks(array($block))));

print $output;

?>

Tags: