You are here

function i18n_block_install in Internationalization 7

Implements hook_install().

File

i18n_block/i18n_block.install, line 11
Installation file for i18nblocks module.

Code

function i18n_block_install() {
  module_load_install('i18n');
  i18n_install_create_fields('block', array(
    'i18n_mode',
  ));

  // Set module weight for it to run after all block visibility modules have run
  db_query("UPDATE {system} SET weight = 100 WHERE name = 'i18n_block' AND type = 'module'");

  // If updating from D6, module changed name
  if (variable_get('i18n_drupal6_update')) {
    i18n_block_update_7000();
    i18n_block_update_7001();
  }
}