Created
June 26, 2014 22:03
-
-
Save namklabs/3e7ba60e0389bce0690d to your computer and use it in GitHub Desktop.
Drupal - get block via PHP on template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.drupal.org/node/1032068#comment-5633442 | |
<?php | |
# print render(module_invoke('MODULE_NAME', 'block_view', 'BLOCK_DELTA')); | |
?> | |
<?php | |
print render(module_invoke('search', 'block_view', '1')); | |
# import the search block anywhere | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment