Skip to content

Instantly share code, notes, and snippets.

@feldmayer
feldmayer / gist:3370310
Created August 16, 2012 13:57
Drupal 7: Load block programmatically with i18n
<?php
$block_id = 2;
$block = block_block_view($block_id);
$block['content'] = i18n_string(array('blocks', 'block', $block_id, 'body'), $block['content']);
?>