Skip to content

Instantly share code, notes, and snippets.

Alexander Sapozhnikov shoorick

Block or report user

Report or block shoorick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
feldmayer / gist:3370310
Created Aug 16, 2012
Drupal 7: Load block programmatically with i18n
View gist:3370310
$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.