Created
August 16, 2012 13:57
-
-
Save feldmayer/3370310 to your computer and use it in GitHub Desktop.
Drupal 7: Load block programmatically with i18n
This file contains hidden or 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
<?php | |
$block_id = 2; | |
$block = block_block_view($block_id); | |
$block['content'] = i18n_string(array('blocks', 'block', $block_id, 'body'), $block['content']); | |
?> |
Thanks!
Thank you very much 👍
Thanks buddy....
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! This really helped me!