1 block.install block_update_1002()

Remove the legacy block tables.

Related topics

File

core/modules/block/block.install, line 65
Install, update and uninstall functions for the block module.

Code

function block_update_1002() {
  db_drop_table('block');
  db_drop_table('block_role');
  db_drop_table('cache_block');

  // Set the system weight back to 0, previously it was -5, but this weight is
  // no longer necessary as Block is no longer responsible for page layout.
  module_set_weight('block', 0);
}