Drupal - add drupal block on template

0 votes
85 views
added Aug 7, 2019 in Drupal by lcjr First Warrant Officer (9,190 points)
<!--search for desktop-->
<?php
  $block = module_invoke('block', 'block_view', '29');
  print render($block['content']);
?>
<!--search for mobile-->
<?php
  $blockMob = module_invoke('block', 'block_view', '30');
  print render($blockMob['content']);
?>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...