Skip to content

Instantly share code, notes, and snippets.

@elliottb
Created June 18, 2013 22:00

Revisions

  1. elliottb created this gist Jun 18, 2013.
    12 changes: 12 additions & 0 deletions Drupal 6 render i18n block
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    function render_i18n_block($block_name, $region = "hidden") {
    if ($list = block_list($region)) {
    foreach ($list as $key => $block) {
    if ($block_name == $block->delta){
    print $block->content;
    }
    }
    }
    }

    //usage
    print render_i18n_block('my-block', 'footer');