You are here

function i18n_select_block_list_alter in Internationalization 7

Implements hook_block_list_alter().

Dirty trick to enable selection for blocks though it may be disabled for the current page.

File

i18n_select/i18n_select.module, line 44
Multilingual content selection module.

Code

function i18n_select_block_list_alter(&$blocks) {

  // Still, skip for form submission. There are pages like the ones produced
  // by overlay that render the blocks before the page.
  // See overlay_init(), overlay_overlay_child_initialize()
  if (empty($_POST) && !isset($_GET['token']) && variable_get('i18n_select_page_block', TRUE)) {
    i18n_select(TRUE);
  }
}