Skip to content

Instantly share code, notes, and snippets.

Alexander Sapozhnikov shoorick

View GitHub Profile
@feldmayer
feldmayer / gist:3370310
Created Aug 16, 2012
Drupal 7: Load block programmatically with i18n
View gist:3370310
<?php
$block_id = 2;
$block = block_block_view($block_id);
$block['content'] = i18n_string(array('blocks', 'block', $block_id, 'body'), $block['content']);
?>
You can’t perform that action at this time.