menu

Drupal7输出区块到模板

  • date_range 04/02/2014 00:00 info
    sort
    Default
    label

<? 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;

?>


编辑